diff options
| author | ruki <[email protected]> | 2019-06-12 11:09:15 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-06-12 11:09:15 +0800 |
| commit | 9b8c78dadd744584c64ec892c822333744a04392 (patch) | |
| tree | f158d535ea21d5acce9e0a74f04a1a17ad9963c1 | |
| parent | 5bb92110aa440ab644ff6d585d104e0143748652 (diff) | |
| parent | b357d95010f883bff0d1a92ba2390f4c0a50e8ec (diff) | |
Merge pull request #452 from OpportunityLiu/dev-link-template
Add some comments for cuda template
| -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 |
