ur disposal:
> 1) set(CUDA_NVCC_FLAGS "-Dfoo") needs to be called *BEFORE* any
> cuda_add_xxx according to `cmake --help-module FindCUDA`
>
> 2) add_definitions(-Dfoo), I called it before cuda_add_xxx too and it
> worked as well
>
> Hope that get's you going -
> P
-
CUDA setup,
CUDA_ADD_EXECUTABLE(myprog myprog.cu)
SET_PROPERTY(TARGET myprog APPEND PROPERTY
COMPILE_DEFINITIONS "DEF1;DEF2"
)
then they are not defined. Is this the intended behavior, and if so, how
can I make the cuda version pick up the COMPILE_DEFINITIONS
Best regards,
Karl
--
Karl Ljungkvist
s specific to these
files and not affect the global scope. Any help is greatly appreciated!
Best regards,
Karl
--
Karl Ljungkvist
PhD student
Uppsala University
Dept. of Information Technology
Div. of Scientific Computing
Box 337
SE-751 05 Uppsala, Sweden
Email: karl.ljungkv...@it.uu.se
Phone: +46 18 471 2