diff --git a/sycl/plugins/cuda/CMakeLists.txt b/sycl/plugins/cuda/CMakeLists.txt index 448ea7e77f419..be94f687e12d0 100644 --- a/sycl/plugins/cuda/CMakeLists.txt +++ b/sycl/plugins/cuda/CMakeLists.txt @@ -43,7 +43,3 @@ install(TARGETS pi_cuda LIBRARY DESTINATION "lib${LLVM_LIBDIR_SUFFIX}" COMPONENT pi_cuda RUNTIME DESTINATION "bin" COMPONENT pi_cuda ) - -# `sycl/source/CMakeLists.txt` adapted when SYCL_BUILD_PI_CUDA is defined: -# target_link_libraries(sycl PUBLIC pi_cuda) -# target_compile_definitions(sycl PUBLIC USE_PI_CUDA) diff --git a/sycl/source/CMakeLists.txt b/sycl/source/CMakeLists.txt index 7da8d346e8d3b..61486162b16d0 100644 --- a/sycl/source/CMakeLists.txt +++ b/sycl/source/CMakeLists.txt @@ -82,10 +82,6 @@ function(add_sycl_rt_library LIB_NAME) $<$:pi_cuda> ) - target_compile_definitions(${LIB_OBJ_NAME} - PUBLIC - $<$:USE_PI_CUDA>) - add_common_options(${LIB_NAME} ${LIB_OBJ_NAME}) set_target_properties(${LIB_NAME} PROPERTIES diff --git a/sycl/source/detail/context_impl.cpp b/sycl/source/detail/context_impl.cpp index 1ef5929adb766..6d29e599addf6 100644 --- a/sycl/source/detail/context_impl.cpp +++ b/sycl/source/detail/context_impl.cpp @@ -45,7 +45,6 @@ context_impl::context_impl(const vector_class Devices, const auto Backend = getPlugin().getBackend(); if (Backend == backend::cuda) { -#if USE_PI_CUDA const bool UseCUDAPrimaryContext = MPropList.has_property(); const pi_context_properties Props[] = { @@ -55,10 +54,6 @@ context_impl::context_impl(const vector_class Devices, getPlugin().call( Props, DeviceIds.size(), DeviceIds.data(), nullptr, nullptr, &MContext); -#else - cl::sycl::detail::pi::die( - "CUDA support was not enabled at compilation time"); -#endif } else { getPlugin().call(nullptr, DeviceIds.size(), DeviceIds.data(), nullptr,