diff --git a/components/zerodop/CMakeLists.txt b/components/zerodop/CMakeLists.txt index f311321..afd838f 100644 --- a/components/zerodop/CMakeLists.txt +++ b/components/zerodop/CMakeLists.txt @@ -3,7 +3,13 @@ add_subdirectory(geozero) add_subdirectory(topozero) if(CMAKE_CUDA_COMPILER) - # add_subdirectory(GPUampcor) TODO cublas_device removed from CUDA ≥ 10 + + # cublas_device removed from CUDA ≥ 10 + if(CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA" AND + CMAKE_CUDA_COMPILER_VERSION VERSION_LESS 10) + add_subdirectory(GPUampcor) + endif() + add_subdirectory(GPUgeo2rdr) endif() diff --git a/components/zerodop/GPUampcor/CMakeLists.txt b/components/zerodop/GPUampcor/CMakeLists.txt index 302b182..3f416e4 100644 --- a/components/zerodop/GPUampcor/CMakeLists.txt +++ b/components/zerodop/GPUampcor/CMakeLists.txt @@ -12,3 +12,7 @@ target_link_libraries(GPUampcor PRIVATE cublas DataAccessor_static ) +InstallSameDir( + GPUampcor + __init__.py + )