We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bf1f03 commit f44fb56Copy full SHA for f44fb56
flang-rt/cmake/modules/AddFlangRTOffload.cmake
@@ -47,7 +47,10 @@ macro(enable_cuda_compilation name files)
47
# property can only be applied to object libraries and create *.ptx files
48
# instead of *.o files. The .a will consist of those *.ptx files only.
49
add_flangrt_library(obj.${name}PTX OBJECT ${files})
50
- set_property(TARGET obj.${name}PTX PROPERTY CUDA_PTX_COMPILATION ON)
+ set_target_properties(obj.${name}PTX PROPERTIES
51
+ CUDA_PTX_COMPILATION ON
52
+ CUDA_SEPARABLE_COMPILATION ON
53
+ )
54
add_flangrt_library(${name}PTX STATIC "$<TARGET_OBJECTS:obj.${name}PTX>")
55
56
# Apply configuration options
0 commit comments