Hello everyone,
I hope you're all doing well. I'm reaching out because I've encountered some difficulties while trying to build MAGMA with Intel oneAPI 2024.2.1.
As some of you might know, the older (classic) Intel compilers, namely, icc, icpc, and ifort have been deprecated in this release, and are now replaced by the newer compilers: icx, icpx, and ifx. While I understand the benefits of transitioning to these new compilers, I’m encountering issues getting MAGMA to compile correctly with them.
Additionally, I need GPU support for my setup, which includes two Pascal NVIDIA GPUs. This adds another layer of complexity, and I'm wondering if anyone has had success building MAGMA with GPU support using these new Intel compilers. If so, I'd greatly appreciate any advice or solutions you could share.
Alternatively, do you think it might be better to revert to an older version of Intel oneAPI where the classic compilers are still available?
Thanks in advance for your help!
--
You received this message because you are subscribed to the Google Groups "MAGMA User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to magma-user+...@icl.utk.edu.
To view this discussion on the web visit https://groups.google.com/a/icl.utk.edu/d/msgid/magma-user/42b2604a-4e4f-427a-af4e-bcd63c9e3559n%40icl.utk.edu.
On Sep 2, 2024, at 1:37 PM, Zgjim Rrustemi <zgj...@gmail.com> wrote:Hello Ahmad,I cloned magma from bitbucket with git, I'm using CUDA 12.6 with Intel oneAPI 2024.2.1 with the newest NVIDIA drivers (560) on Ubuntu 22.04.4 LTS. NVCC is also built with CUDA 12.6.As per the instructions on the README file I have firstly created a minimal make.inc configuration with `echo -e 'BACKEND = cuda\nFORT = true\nGPU_TARGET = Pascal' > make.inc`.After some small changes to the codegen.py (making it use a compatible Python 2 version), I have created CMake.src.cuda without any errors or warnings. I then created the build directory,I initialized Intel oneAPI environment and passed the following variables to the terminal:export CXX=icpx
export CC=icx
export FC=ifx
export CUDAHOSTCXX=icpxwhere I used cmake with the following options: `cmake -DCMAKE_CUDA_COMPILER:PATH=/usr/local/cuda-12.6/bin/nvcc -DCMAKE_CUDA_FLAGS="-std=c++17 -allow-unsupported-compiler" -DMAGMA_ENABLE_CUDA=ON -DCMAKE_INSTALL_PREFIX=/home/srv/magma_intel -DGPU_TARGET='sm_61' -DBLA_VENDOR=Intel10_64ilp -DBUILD_SHARED_LIBS=ON -DUSE_FORTRAN=ON -DFORTRAN_CONVENTION=-DADD_ ..`CMake only warned me that the manually specified variables (CMAKE_CUDA_COMPILER and CMAKE_CUDA_FLAGS) were not used.When I tried to use make with `make -j64`, I started getting a lot of errors such as: `unsupported Intel ICX compiler! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.`.Other errors were very similar, as it only complained about ICX and clang.I would be glad if you could guide me and point any errors made by my side.All the best,Zgjim