Skip to content

Commit 181b30e

Browse files
authored
[offload][asan][cuda] force remove -O3 from cuda rtl.cpp (llvm#1504)
2 parents b5567ba + 8d3b44e commit 181b30e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

offload/plugins-nextgen/cuda/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
add_target_library(omptarget.rtl.cuda CUDA)
33

44
target_sources(omptarget.rtl.cuda PRIVATE src/rtl.cpp)
5+
#workaround strange -O3 issue for cuda src.rtk,coo ASAN
6+
set_source_files_properties(src/rtl.cpp PROPERTIES COMPILE_FLAGS "-O0")
57

68
find_package(CUDAToolkit QUIET)
79
if(CUDAToolkit_FOUND AND NOT "cuda" IN_LIST LIBOMPTARGET_DLOPEN_PLUGINS)

0 commit comments

Comments
 (0)