Changeset View
Changeset View
Standalone View
Standalone View
openmp/libomptarget/plugins/cuda/CMakeLists.txt
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
# Report to the parent scope that we are building a plugin for CUDA. | # Report to the parent scope that we are building a plugin for CUDA. | ||||
# This controls whether tests are run for the nvptx offloading target | # This controls whether tests are run for the nvptx offloading target | ||||
# Run them if libcuda is available, or if the user explicitly asked for dlopen | # Run them if libcuda is available, or if the user explicitly asked for dlopen | ||||
# Otherwise this plugin is being built speculatively and there may be no cuda available | # Otherwise this plugin is being built speculatively and there may be no cuda available | ||||
if (LIBOMPTARGET_CAN_LINK_LIBCUDA OR LIBOMPTARGET_FORCE_DLOPEN_LIBCUDA) | if (LIBOMPTARGET_CAN_LINK_LIBCUDA OR LIBOMPTARGET_FORCE_DLOPEN_LIBCUDA) | ||||
libomptarget_say("Enable tests using CUDA plugin") | libomptarget_say("Enable tests using CUDA plugin") | ||||
set(LIBOMPTARGET_SYSTEM_TARGETS "${LIBOMPTARGET_SYSTEM_TARGETS} nvptx64-nvidia-cuda" PARENT_SCOPE) | set(LIBOMPTARGET_SYSTEM_TARGETS "${LIBOMPTARGET_SYSTEM_TARGETS} nvptx64-nvidia-cuda" PARENT_SCOPE) | ||||
set(LIBOMPTARGET_TESTED_PLUGINS "omptarget.rtl.cuda" PARENT_SCOPE) | |||||
tianshilei1992: what is this for? Do we have to do similar thing for AMDGCN? If no, why is it here? | |||||
I originally had it because I was getting some linking errors, but I just tried it and it is not really necessary, apparently. josemonsalve2: I originally had it because I was getting some linking errors, but I just tried it and it is… | |||||
else() | else() | ||||
libomptarget_say("Disabling tests using CUDA plugin as cuda may not be available") | libomptarget_say("Disabling tests using CUDA plugin as cuda may not be available") | ||||
endif() | endif() |
what is this for? Do we have to do similar thing for AMDGCN? If no, why is it here?