[Openmp-commits] [PATCH] D106751: [OpenMP][Libomptarget] Adding `print_device_info` to RTL and `omptarget`
Senran Zhang via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jul 27 20:35:15 PDT 2021
zsrkmyn added inline comments.
================
Comment at: openmp/libomptarget/plugins/cuda/src/rtl.cpp:1187
+ checkResult(
+ cuDeviceGetAttribute(&TmpInt, CU_DEVICE_ATTRIBUTE_GPU_OVERLAP, Device),
+ "Error returned from cuDeviceGetAttribute\n");
----------------
jdoerfert wrote:
> jhuber6 wrote:
> > zsrkmyn wrote:
> > > Hi, I just found the macro CU_DEVICE_ATTRIBUTE_GPU_OVERLAP is defined nowhere inside the llvm source tree, leading to compilation failure on machines w/o cuda SDK. Could you help take a look?
> > Someone needs to add it to `/openmp/libomptarget/plugins/cuda/dynamic_cuda/cuda.h` I'm assuming.
> Only this one?
>From my build log, there's no matching function for call to the following 2 functinos,
```
cuDeviceGetName
cuDeviceTotalMem
```
And the following macros are not defined
```
CU_DEVICE_ATTRIBUTE_GPU_OVERLAP
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Y
CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Z
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Y
CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Z
CU_DEVICE_ATTRIBUTE_MAX_PITCH
CU_DEVICE_ATTRIBUTE_CLOCK_RATE
CU_DEVICE_ATTRIBUTE_INTEGRATED
CU_DEVICE_ATTRIBUTE_COMPUTE_MODE
```
Not sure if there are more errors.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106751/new/
https://reviews.llvm.org/D106751
More information about the Openmp-commits
mailing list