-xcuda option does not allow linking
Since the linker gets passed CMAKE_CXX_FLAGS
, the Clang -xcuda
flag breaks linking - it tries to compile. The current hack is to put -xcuda
, --cuda-gpu-arch
and --cuda-path
to add_definitions
.
Edited by Josip Bašić