Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e2762f2d authored by Nathan Précigout's avatar Nathan Précigout
Browse files

Chameleon can now be compiled with cuda 12.x

parent fc1dc041
No related branches found
No related tags found
1 merge request!396Chameleon can now be compiled with cuda 12.x
...@@ -384,14 +384,14 @@ if(NOT CHAMELEON_SIMULATION) ...@@ -384,14 +384,14 @@ if(NOT CHAMELEON_SIMULATION)
find_package(CUDA REQUIRED) find_package(CUDA REQUIRED)
if (CUDA_FOUND) if (CUDA_FOUND)
if(CUDA_VERSION VERSION_LESS "4.0")
message(WARNING "Cuda version must be at least 4.0")
endif(CUDA_VERSION VERSION_LESS "4.0")
message("-- ${Blue}Add definition CHAMELEON_USE_CUDA" message("-- ${Blue}Add definition CHAMELEON_USE_CUDA"
" - Activate CUDA in Chameleon${ColourReset}") " - Activate CUDA in Chameleon${ColourReset}")
# create imported target because not provided with old cmake # create imported target because not provided with old cmake
add_library(CUDA::CUDA INTERFACE IMPORTED) add_library(CUDA::CUDA INTERFACE IMPORTED)
add_library(CUDA::CUBLAS INTERFACE IMPORTED) add_library(CUDA::CUBLAS INTERFACE IMPORTED)
if(CUDA_VERSION VERSION_LESS "3.0")
set(CUDA_HOST_COMPILATION_CPP OFF)
endif(CUDA_VERSION VERSION_LESS "3.0")
set(CUDA_BUILD_EMULATION OFF) set(CUDA_BUILD_EMULATION OFF)
if (CUDA_INCLUDE_DIRS) if (CUDA_INCLUDE_DIRS)
set_target_properties(CUDA::CUDA PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${CUDA_INCLUDE_DIRS}") set_target_properties(CUDA::CUDA PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${CUDA_INCLUDE_DIRS}")
......
...@@ -48,7 +48,6 @@ ...@@ -48,7 +48,6 @@
#include <cuda.h> #include <cuda.h>
#include <cuda_runtime.h> #include <cuda_runtime.h>
#include <cuda_runtime_api.h> #include <cuda_runtime_api.h>
#include <cublas.h>
#include <cublas_v2.h> #include <cublas_v2.h>
#endif #endif
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include <cuda.h> #include <cuda.h>
#include <cuComplex.h> #include <cuComplex.h>
#include <cublas.h>
#include <cublas_v2.h> #include <cublas_v2.h>
#define CUBLAS_SADDR(_a_) (&(_a_)) #define CUBLAS_SADDR(_a_) (&(_a_))
......
...@@ -67,8 +67,6 @@ ...@@ -67,8 +67,6 @@
#include <starpu_scheduler.h> #include <starpu_scheduler.h>
#include <starpu_cuda.h> #include <starpu_cuda.h>
#include <cublas.h>
#include <starpu_cublas.h>
#include <cublas_v2.h> #include <cublas_v2.h>
#include <starpu_cublas_v2.h> #include <starpu_cublas_v2.h>
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment