Closed baryluk closed 3 months ago
Still broken with rocm 6.0.2
and this repo at ff8123937c8851d86b1edfbad9f032462c48aa05
user@debian:~/HIP-Examples$ ./test_all.sh
==== vectorAdd ====
rm -f ./vectoradd_hip.exe
rm -f vectoradd_hip.o
rm -f /opt/rocm/src/*.o
/opt/rocm/bin/hipcc -g -c -o vectoradd_hip.o vectoradd_hip.cpp
In file included from <built-in>:1:
In file included from /opt/rocm-6.0.2/lib/llvm/lib/clang/17.0.0/include/__clang_hip_runtime_wrapper.h:50:
/opt/rocm-6.0.2/lib/llvm/lib/clang/17.0.0/include/cuda_wrappers/cmath:27:15: fatal error: 'cmath' file not found
#include_next <cmath>
^~~~~~~
1 error generated when compiling for gfx1030.
make: *** [<builtin>: vectoradd_hip.o] Error 1
==== gpu-burn ====
rm -rf build
mkdir -p build
/opt/rocm/bin/hipcc -I/opt/rocm/../include -O3 -c -o build/AmdGpuMonitor.o AmdGpuMonitor.cpp
In file included from <built-in>:1:
In file included from /opt/rocm-6.0.2/lib/llvm/lib/clang/17.0.0/include/__clang_hip_runtime_wrapper.h:50:
/opt/rocm-6.0.2/lib/llvm/lib/clang/17.0.0/include/cuda_wrappers/cmath:27:15: fatal error: 'cmath' file not found
#include_next <cmath>
^~~~~~~
1 error generated when compiling for gfx1030.
make: *** [Makefile:30: build/AmdGpuMonitor.o] Error 1
./test_all.sh: line 19: ./build/gpuburn-hip: No such file or directory
==== strided-access ====
rm -f strided-access *.o
/opt/rocm/bin/hipcc -std=c++11 -O3 -o strided-access benchmark-hip.cpp
In file included from <built-in>:1:
In file included from /opt/rocm-6.0.2/lib/llvm/lib/clang/17.0.0/include/__clang_hip_runtime_wrapper.h:50:
/opt/rocm-6.0.2/lib/llvm/lib/clang/17.0.0/include/cuda_wrappers/cmath:27:15: fatal error: 'cmath' file not found
#include_next <cmath>
^~~~~~~
1 error generated when compiling for gfx1030.
make: *** [Makefile:8: strided-access] Error 1
./test_all.sh: line 28: ./strided-access: No such file or directory
==== rtm8 ====
hipcc -std=c++11 -O3 -o rtm8_hip rtm8.cpp
In file included from <built-in>:1:
In file included from /opt/rocm-6.0.2/lib/llvm/lib/clang/17.0.0/include/__clang_hip_runtime_wrapper.h:50:
/opt/rocm-6.0.2/lib/llvm/lib/clang/17.0.0/include/cuda_wrappers/cmath:27:15: fatal error: 'cmath' file not found
#include_next <cmath>
^~~~~~~
1 error generated when compiling for gfx1030.
./test_all.sh: line 37: ./rtm8_hip: No such file or directory
==== reduction ====
rm -f reduction *.o
/opt/rocm/bin/hipcc -std=c++11 -O3 -o reduction reduction.cpp
In file included from <built-in>:1:
In file included from /opt/rocm-6.0.2/lib/llvm/lib/clang/17.0.0/include/__clang_hip_runtime_wrapper.h:50:
/opt/rocm-6.0.2/lib/llvm/lib/clang/17.0.0/include/cuda_wrappers/cmath:27:15: fatal error: 'cmath' file not found
#include_next <cmath>
^~~~~~~
1 error generated when compiling for gfx1030.
make: *** [Makefile:8: reduction] Error 1
./reduction 1024*1024*4
./run.sh: line 7: ./reduction: No such file or directory
./reduction 8388608
./run.sh: line 7: ./reduction: No such file or directory
./reduction 16777216
./run.sh: line 7: ./reduction: No such file or directory
./reduction 33554432
./run.sh: line 7: ./reduction: No such file or directory
./reduction 67108864
./run.sh: line 7: ./reduction: No such file or directory
./reduction 134217728
./run.sh: line 7: ./reduction: No such file or directory
./reduction 268435456
./run.sh: line 7: ./reduction: No such file or directory
./reduction 536870912
./run.sh: line 7: ./reduction: No such file or directory
==== mini-nbody ====
hipcc -I../ -DSHMOO nbody-orig.cpp -o nbody-orig
In file included from <built-in>:1:
In file included from /opt/rocm-6.0.2/lib/llvm/lib/clang/17.0.0/include/__clang_hip_runtime_wrapper.h:50:
/opt/rocm-6.0.2/lib/llvm/lib/clang/17.0.0/include/cuda_wrappers/cmath:27:15: fatal error: 'cmath' file not found
#include_next <cmath>
^~~~~~~
1 error generated when compiling for gfx1030.
./nbody-orig 1024
./HIP-nbody-orig.sh: line 35: ./nbody-orig: No such file or directory
./nbody-orig 2048
./HIP-nbody-orig.sh: line 35: ./nbody-orig: No such file or directory
./nbody-orig 4096
./HIP-nbody-orig.sh: line 35: ./nbody-orig: No such file or directory
./nbody-orig 8192
./HIP-nbody-orig.sh: line 35: ./nbody-orig: No such file or directory
./nbody-orig 16384
./HIP-nbody-orig.sh: line 35: ./nbody-orig: No such file or directory
./nbody-orig 32768
./HIP-nbody-orig.sh: line 35: ./nbody-orig: No such file or directory
./nbody-orig 65536
./HIP-nbody-orig.sh: line 35: ./nbody-orig: No such file or directory
./nbody-orig 131072
./HIP-nbody-orig.sh: line 35: ./nbody-orig: No such file or directory
./nbody-orig 262144
./HIP-nbody-orig.sh: line 35: ./nbody-orig: No such file or directory
./nbody-orig 524288
./HIP-nbody-orig.sh: line 35: ./nbody-orig: No such file or directory
hipcc -I../ -DSHMOO nbody-soa.cpp -o nbody-soa
In file included from <built-in>:1:
In file included from /opt/rocm-6.0.2/lib/llvm/lib/clang/17.0.0/include/__clang_hip_runtime_wrapper.h:50:
/opt/rocm-6.0.2/lib/llvm/lib/clang/17.0.0/include/cuda_wrappers/cmath:27:15: fatal error: 'cmath' file not found
#include_next <cmath>
^~~~~~~
1 error generated when compiling for gfx1030.
./nbody-soa 1024
./HIP-nbody-soa.sh: line 37: ./nbody-soa: No such file or directory
./nbody-soa 2048
./HIP-nbody-soa.sh: line 37: ./nbody-soa: No such file or directory
./nbody-soa 4096
./HIP-nbody-soa.sh: line 37: ./nbody-soa: No such file or directory
./nbody-soa 8192
./HIP-nbody-soa.sh: line 37: ./nbody-soa: No such file or directory
./nbody-soa 16384
./HIP-nbody-soa.sh: line 37: ./nbody-soa: No such file or directory
./nbody-soa 32768
./HIP-nbody-soa.sh: line 37: ./nbody-soa: No such file or directory
./nbody-soa 65536
./HIP-nbody-soa.sh: line 37: ./nbody-soa: No such file or directory
./nbody-soa 131072
./HIP-nbody-soa.sh: line 37: ./nbody-soa: No such file or directory
hipcc -I../ -DSHMOO nbody-block.cpp -o nbody-block
In file included from <built-in>:1:
In file included from /opt/rocm-6.0.2/lib/llvm/lib/clang/17.0.0/include/__clang_hip_runtime_wrapper.h:50:
/opt/rocm-6.0.2/lib/llvm/lib/clang/17.0.0/include/cuda_wrappers/cmath:27:15: fatal error: 'cmath' file not found
#include_next <cmath>
^~~~~~~
1 error generated when compiling for gfx1030.
...
...
...
@baryluk Internal ticket has been created to fix this issue. Thanks!
Closing as the HIP Examples are deprecated, please use rocm-examples and open an issue there if you have further issues.
But the script and all makefiles fail:
It would be nice if it the script and makefiles are smarter.
Doing,
$ HIP_PATH=/opt/rocm-3.10.0/hip ./test_all.sh
appears to work. But should be documented in README at least I think. Or script should do detection better, if it is not set.One of the options is to simply to call
hipconfig
directly and just relay on the user havingPATH
setup. I think it is more reliable.