File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ if(is_dpcpp)
33
33
if (UNIX )
34
34
set (UNIX_INTERFACE_COMPILE_OPTIONS -fsycl )
35
35
set (UNIX_INTERFACE_LINK_OPTIONS -fsycl )
36
- if (ENABLE_CURAND_BACKEND )
36
+ if (ENABLE_CURAND_BACKEND OR ENABLE_CUBLAS_BACKEND )
37
37
list (APPEND UNIX_INTERFACE_COMPILE_OPTIONS
38
38
-fsycl-targets=nvptx64-nvidia-cuda-sycldevice -fsycl-unnamed-lambda )
39
39
list (APPEND UNIX_INTERFACE_LINK_OPTIONS
40
40
-fsycl-targets=nvptx64-nvidia-cuda-sycldevice )
41
41
endif ()
42
- if (ENABLE_CURAND_BACKEND )
42
+ if (ENABLE_CURAND_BACKEND OR ENABLE_CUBLAS_BACKEND )
43
43
set_target_properties (ONEMKL::SYCL::SYCL PROPERTIES
44
44
INTERFACE_COMPILE_OPTIONS "${UNIX_INTERFACE_COMPILE_OPTIONS} "
45
45
INTERFACE_LINK_OPTIONS "${UNIX_INTERFACE_LINK_OPTIONS} "
You can’t perform that action at this time.
0 commit comments