diff options
| -rw-r--r-- | xmake/templates/cuda/console/project/xmake.lua | 7 | ||||
| -rw-r--r-- | xmake/templates/cuda/shared_library/project/xmake.lua | 7 | ||||
| -rw-r--r-- | xmake/templates/cuda/static_library/project/xmake.lua | 7 |
3 files changed, 12 insertions, 9 deletions
diff --git a/xmake/templates/cuda/console/project/xmake.lua b/xmake/templates/cuda/console/project/xmake.lua index 226488448..deee20adf 100644 --- a/xmake/templates/cuda/console/project/xmake.lua +++ b/xmake/templates/cuda/console/project/xmake.lua @@ -8,9 +8,10 @@ target("[targetname]") -- set kind set_kind("binary") - -- generate relocatable device code for device linker of dependents - -- if no __device__ and __global__ functions will be called cross file, - -- this instruction could be omitted + -- generate relocatable device code for device linker of dependents. + -- if __device__ or __global__ functions will be called cross file, + -- or dynamic parallelism will be used, + -- this instruction should be opted in. -- add_cuflags("-rdc=true") -- add files diff --git a/xmake/templates/cuda/shared_library/project/xmake.lua b/xmake/templates/cuda/shared_library/project/xmake.lua index 8ffb8b7e9..ceef4438d 100644 --- a/xmake/templates/cuda/shared_library/project/xmake.lua +++ b/xmake/templates/cuda/shared_library/project/xmake.lua @@ -14,9 +14,10 @@ target("[targetname]") -- add include dirs add_includedirs("inc") - -- generate relocatable device code for device linker of dependents - -- if no __device__ and __global__ functions will be called cross file, - -- this instruction could be omitted + -- generate relocatable device code for device linker of dependents. + -- if __device__ or __global__ functions will be called cross file, + -- or dynamic parallelism will be used, + -- this instruction should be opted in. -- add_cuflags("-rdc=true") -- add files diff --git a/xmake/templates/cuda/static_library/project/xmake.lua b/xmake/templates/cuda/static_library/project/xmake.lua index be08da0da..3896fb238 100644 --- a/xmake/templates/cuda/static_library/project/xmake.lua +++ b/xmake/templates/cuda/static_library/project/xmake.lua @@ -14,9 +14,10 @@ target("[targetname]") -- add include dirs add_includedirs("inc") - -- generate relocatable device code for device linker of dependents - -- if no __device__ and __global__ functions will be called cross file or be exported, - -- this instruction could be omitted + -- generate relocatable device code for device linker of dependents. + -- if neither __device__ and __global__ functions will be called cross file or be exported, + -- nor dynamic parallelism will be used, + -- this instruction could be omitted. add_cuflags("-rdc=true") -- add files |
