aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorJose M Monsalve Diaz <jmonsalvediaz@anl.gov>2021-07-27 21:47:40 -0400
committerShilei Tian <tianshilei1992@gmail.com>2021-07-27 21:47:57 -0400
commitd2f85d0910ce94cf55793d9cda09beaaa03e881e (patch)
treeabc0110b89ecd46267574f3f6947a4e266f89c2a /llvm/lib/IR/Module.cpp
parent5ab6aedda9d959a44453b7163b59f645012dbb83 (diff)
downloadllvm-d2f85d0910ce94cf55793d9cda09beaaa03e881e.zip
llvm-d2f85d0910ce94cf55793d9cda09beaaa03e881e.tar.gz
llvm-d2f85d0910ce94cf55793d9cda09beaaa03e881e.tar.bz2
[OpenMP][Libomptarget] Adding `print_device_info` to RTL and `omptarget`
This patch introduces a function in the device's plugin to print the device information. This patch relates to another patch that introduces a CLI tool to obtain the device information from the omplibrary directly. It is inspired by PGI's pgaccelinfo. The modifications are as follows: 1. Introduce the optional `void __tgt_rtl_print_device_info(RTLdevID)` function into the RTL. 2. Introduce the `bool __tgt_print_device_info(devID)` function into `omptarget` interface. Returns false if the RTL is not implemented 3. Added `bool printDeviceInfo(RTLDevID)` to the `DeviceTy` 4. Implement the `__tgt_rtl_print_device_info` for CUDA. Added additional CUDA Runtime calls. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D106751
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions