Hi Natalie,
many thanks for your swift response!
I assumed that hipcc used gcc v.14 because the output of the command
hipcc -v
is
Ubuntu clang version 17.0.6 (9ubuntu1)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/13
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/14
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/14
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
Found HIP installation: /usr, version 5.7.31921
clang++-17: warning: argument unused during compilation: '-O3' [-Wunused-command-line-argument]
clang++-17: warning: argument unused during compilation: '--rtlib=compiler-rt' [-Wunused-command-line-argument]
clang++-17: warning: argument unused during compilation: '-unwindlib=libgcc' [-Wunused-command-line-argument]
I just interpreted this as gcc v. 14 being used as the underlying compiler for clang. Sorry for the confusion, to me anything outside gfortran, g++ and gcc is new territory.
I followed your advice and set
CC = gcc
CXX = g++
in make.inc. However, this leads to another (earlier?) error
g++ -O3 -fPIC -fopenmp -I/usr/lib/gcc/x86_64-linux-gnu/14/include -DNDEBUG -DADD_ -Wall -std=c++11 -D__HIP_PLATFORM_AMD__ -DHIPBLAS_V2 -I/usr/include -I./include -I./testing -I./control -c -o src/shpotrf_gpu.o src/shpotrf_gpu.cpp
src/shpotrf_gpu.cpp: In function ‘magma_int_t magma_sgemm_fp16(magma_trans_t, magma_trans_t, magma_int_t, magma_int_t, magma_int_t, float, float*, magma_int_t, magmaHalf*, magma_int_t, float*, magma_int_t, magmaHalf*, magma_int_t, float, float*, magma_int_t, magma_queue_t)’:
src/shpotrf_gpu.cpp:61:28: error: ‘HIPBLAS_COMPUTE_32F’ was not declared in this scope; did you mean ‘HIPBLAS_C_32F’?
61 | HIPBLAS_COMPUTE_32F, HIPBLAS_GEMM_DEFAULT);
| ^~~~~~~~~~~~~~~~~~~
| HIPBLAS_C_32F
make: *** [Makefile:811: src/shpotrf_gpu.o] Error 1
Any advice is appreciated.
Best wishes,
Thomas