Re: [CMake] CUDA language support with host compiler flags

2019-02-28 Thread Robert Maynard via CMake
Currently to get proper propagation of architecture flags such as -arch=sm_50, -compute=compute_X you need to place these into the CMAKE_CUDA_FLAGS. This is a known issue, as flags specified by `target_compile_options` are not propagate to the device linking step, which needs the correct architec

Re: [CMake] CUDA language support with host compiler flags

2019-02-28 Thread Máté Ferenc Nagy-Egri via CMake
Hi Robert! Thank you for the help. I don’t know if I could’ve find that solution myself. I guess selecting CUDA as the COMPILE_LANGUAGE I can controll .cu compiler options to select architecture and what not. Anyhow, if someone needed the minimal template, here it is: https://gist.github.com/M