diff --git a/cmake/onemkl.cmake b/cmake/onemkl.cmake index 226fa2a6d..119c47325 100644 --- a/cmake/onemkl.cmake +++ b/cmake/onemkl.cmake @@ -30,6 +30,8 @@ include_guard() include(ExternalProject) +option(CUTLASS_SYCL_DISCONNECT_ONEMKL_UPDATE "Option is passed to the UPDATE_DISCONNECTED parameter of ExternalProject_Add for onemkl" YES) + set(ONEMKL_INSTALL_DIR ${CMAKE_BINARY_DIR}/deps/oneMKL) set(ONEMKL_INCLUDE_DIR ${ONEMKL_INSTALL_DIR}/include) set(ONEMKL_LIB_DIR ${ONEMKL_INSTALL_DIR}/lib) @@ -57,6 +59,7 @@ ExternalProject_Add( -DTARGET_DOMAINS=rng INSTALL_DIR ${ONEMKL_INSTALL_DIR} BUILD_BYPRODUCTS ${ONEMKL_LIB} + UPDATE_DISCONNECTED ${CUTLASS_SYCL_DISCONNECT_ONEMKL_UPDATE} ) add_library(oneMKL SHARED IMPORTED)