Skip to content

Commit 2a7b99f

Browse files
committed
enable HIP mng
1 parent 2f7ac0c commit 2a7b99f

4 files changed

Lines changed: 455 additions & 134 deletions

File tree

alien/ArcaneInterface/modules/external_packages/src/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ if (NOT TARGET hypre AND NOT TARGET petsc AND NOT TARGET mtl)
22
return()
33
endif ()
44

5+
if(ALIEN_USE_HIP)
6+
find_package(hip REQUIRED)
7+
endif(ALIEN_USE_HIP)
8+
59
createLibrary(alien_external_packages
610
EXPORT alien/AlienExternalPackagesExport.h
711
)
@@ -79,6 +83,12 @@ if (TARGET cuda)
7983
linkLibraries(alien_external_packages cuda)
8084
endif()
8185

86+
if(ALIEN_USE_HIP)
87+
if (TARGET hip::host)
88+
linkLibraries(alien_external_packages hip::host)
89+
endif()
90+
endif(ALIEN_USE_HIP)
91+
8292
linkLibraries(alien_external_packages
8393
Boost::program_options
8494
BLAS::BLAS)

alien/standalone/src/AlienConfig.cmake.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ if(ALIEN_USE_CUDA)
2929
find_package(CUDAToolkit REQUIRED)
3030
endif()
3131

32+
if(ALIEN_USE_HIP)
33+
enable_language(HIP)
34+
find_package(hip REQUIRED)
35+
endif()
36+
3237
if(ALIEN_USE_SYCL)
3338
if(ALIEN_USE_HIPSYCL)
3439
find_package(hipSYCL CONFIG REQUIRED)

alien/standalone/src/core/alien/kernels/sycl/algebra/SYCLKernelInternal.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ class Future
5555
//auto h_access = m_d_value.template get_access<sycl::access::mode::read>();
5656
auto h_access = m_d_value.get_host_access();
5757
m_value = h_access[0];
58-
std::cout<<"FUTURE LOCAL GET : "<<m_value<<std::endl ;
5958
}
6059
return m_value;
6160
}
@@ -1165,7 +1164,6 @@ class KernelInternal
11651164
sycl::buffer<T>& y,
11661165
sycl::buffer<T>& res)
11671166
{
1168-
std::cout<<"SYCL FUTURE DOT "<<m_dot_algo<<std::endl ;
11691167
switch (m_dot_algo) {
11701168
case 2:
11711169
map4_reduce_sum(x, y, res); // with sycl_reduction

0 commit comments

Comments
 (0)