Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ add_library(accel-lib cuda_common.cu cuda_check.cpp cublas_routines_prec.cu
cu_compute_Pq.cu cugw_qpt.cu cugw_qkpt.cu cuhf_utils.cu cugw_utils.cu cu_symmetry.cu )
set_property(TARGET accel-lib PROPERTY CUDA_ARCHITECTURES ${GPU_ARCHS}) #also check the same parameters in solvers
target_include_directories(accel-lib PUBLIC .)
target_link_libraries(accel-lib CUDA::cudart CUDA::cuda_driver CUDA::cublas CUDA::cusolver)
target_link_libraries(accel-lib CUDA::cudart CUDA::cublas CUDA::cusolver)
target_link_libraries(accel-lib GREEN::UTILS GREEN::NDARRAY GREEN::GRIDS GREEN::SYMMETRY)

add_library(gpu gpu_kernel.cpp hf_gpu_kernel.cpp gw_gpu_kernel.cpp)
target_include_directories(gpu PUBLIC .)
target_link_libraries(gpu CUDA::cudart CUDA::cuda_driver CUDA::cublas CUDA::cusolver)
target_link_libraries(gpu CUDA::cudart CUDA::cublas CUDA::cusolver)
target_link_libraries(gpu accel-lib)
target_link_libraries(gpu GREEN::UTILS GREEN::NDARRAY GREEN::SYMMETRY GREEN::GRIDS GREEN::PARAMS)
set_property(TARGET gpu PROPERTY CUDA_ARCHITECTURES ${GPU_ARCHS}) #also check same parameters in accel
2 changes: 1 addition & 1 deletion src/cuda_check.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void check_for_cuda(MPI_Comm global_comm, int global_rank, int &devCount_per_nod
std::cout<<"Device Number: " << i << std::endl;
std::cout<<" Device name: " << prop.name << std::endl;
int memClockKHz = 0;
cuDeviceGetAttribute(&memClockKHz, CU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE, i);
cudaDeviceGetAttribute(&memClockKHz, cudaDevAttrMemoryClockRate, i);
std::cout<<" Peak Memory Bandwidth (GB/s): "<<2.0*memClockKHz*(prop.memoryBusWidth/8)/1.0e6<<std::endl;
std::cout<<" Compute Capability: "<<prop.major<<"."<<prop.minor<<std::endl;
std::cout<<" total global mem: "<<prop.totalGlobalMem/(1024.*1024*1024)<<" GB"<<std::endl;
Expand Down
Loading