Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake hypre with sycl-amd get error #947

Closed
wangzy0327 opened this issue Jul 19, 2023 · 2 comments
Closed

cmake hypre with sycl-amd get error #947

wangzy0327 opened this issue Jul 19, 2023 · 2 comments

Comments

@wangzy0327
Copy link

My cmake command line is

cmake .. -DCMAKE_C_COMPILER=/home/wzy/sycl_workspace/build-hip-2022-12/bin/clang -DCMAKE_CXX_COMPILER=/home/wzy/sycl_workspace/build-hip-2022-12/bin/clang++  -DHYPRE_WITH_SYCL=ON -DCMAKE_BUILD_TYPE=Release -DHYPRE_ENABLE_ONEMKLSPARSE=OFF -DHYPRE_ENABLE_ONEMKLBLAS=OFF -DHYPRE_ENABLE_ONEMKLRAND=OFF -DCMAKE_INSTALL_PREFIX=../install -DHYPRE_SYCL_TARGET=amdgcn-amd-amdhsa  -DHYPRE_SYCL_TARGET_BACKEND=--offload-arch=gfx906
make install

It occured error when make command execute.

[ 14%] Building C object CMakeFiles/HYPRE.dir/lapack/dsygst.c.o
[ 14%] Building C object CMakeFiles/HYPRE.dir/lapack/dsygv.c.o
[ 14%] Building C object CMakeFiles/HYPRE.dir/lapack/dsytd2.c.o
[ 14%] Building C object CMakeFiles/HYPRE.dir/lapack/dsytrd.c.o
[ 14%] Building C object CMakeFiles/HYPRE.dir/lapack/dtrti2.c.o
[ 15%] Building C object CMakeFiles/HYPRE.dir/lapack/dtrtri.c.o
[ 15%] Building C object CMakeFiles/HYPRE.dir/lapack/ieeeck.c.o
[ 15%] Building C object CMakeFiles/HYPRE.dir/lapack/ilaenv.c.o
[ 15%] Building C object CMakeFiles/HYPRE.dir/lapack/lsame.c.o
[ 15%] Building C object CMakeFiles/HYPRE.dir/lapack/xerbla.c.o
[ 15%] Building CXX object CMakeFiles/HYPRE.dir/utilities/HYPRE_handle.c.o
clang-16: warning: treating 'c' input as 'c++' when -fsycl is used [-Wexpected-file-type]
[ 16%] Building C object CMakeFiles/HYPRE.dir/utilities/HYPRE_version.c.o
[ 16%] Building C object CMakeFiles/HYPRE.dir/utilities/amg_linklist.c.o
[ 16%] Building C object CMakeFiles/HYPRE.dir/utilities/binsearch.c.o
[ 16%] Building C object CMakeFiles/HYPRE.dir/utilities/exchange_data.c.o
[ 16%] Building C object CMakeFiles/HYPRE.dir/utilities/F90_HYPRE_error.c.o
[ 16%] Building C object CMakeFiles/HYPRE.dir/utilities/F90_HYPRE_general.c.o
[ 16%] Building C object CMakeFiles/HYPRE.dir/utilities/fortran_matrix.c.o
[ 17%] Building C object CMakeFiles/HYPRE.dir/utilities/ap.c.o
[ 17%] Building C object CMakeFiles/HYPRE.dir/utilities/log.c.o
[ 17%] Building C object CMakeFiles/HYPRE.dir/utilities/complex.c.o
[ 17%] Building CXX object CMakeFiles/HYPRE.dir/utilities/device_utils.c.o
clang-16: warning: treating 'c' input as 'c++' when -fsycl is used [-Wexpected-file-type]
In file included from /home/wzy/ECP/hypre/src/utilities/device_utils.c:8:
/home/wzy/ECP/hypre/src/utilities/_hypre_onedpl.hpp:18:10: fatal error: 'oneapi/dpl/execution' file not found
#include <oneapi/dpl/execution>
         ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/HYPRE.dir/build.make:1588: CMakeFiles/HYPRE.dir/utilities/device_utils.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:439: CMakeFiles/HYPRE.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Does hypre support sycl-toolchain with AMD platform ?

@victorapm

@victorapm
Copy link
Contributor

Hi @wangzy0327,

SYCL builds targeting AMD or NVIDIA GPUs are currently not supported in hypre. To build hypre for gfx906 AMD cards, you would need to use autotools' configure:

./configure --with-hip --with-MPI-include=${MPI_INCLUDE_DIR} --with-MPI-lib-dirs=${MPI_LIB_DIR} --with-MPI-libs=mpi --with-gpu-arch=gfx906

@wangzy0327
Copy link
Author

OK,Thanks for your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants