diff options
| author | OpportunityLiu <[email protected]> | 2019-06-12 11:06:29 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-06-12 11:06:29 +0800 |
| commit | b357d95010f883bff0d1a92ba2390f4c0a50e8ec (patch) | |
| tree | 56da3b984a2ea5db14880dcff590d392a1746544 | |
| parent | 1e524e54308b954935ef4f11b3468c47699a0f85 (diff) | |
add some comments
| -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 |
