I try to install amd rocm(6.0.2) and hip to my laptop (it was way harder than cuda ) then I try to work with hipfy (cuda to hip converter) but I cant run the code successfully.
here what I do :
denizdius@denizdius-Precision-3561:~/Documents/hip-tests/samples/0_Intro/square$ /opt/rocm/bin/hipify-perl square.cu > square.cpp
denizdius@denizdius-Precision-3561:~/Documents/hip-tests/samples/0_Intro/square$ /opt/rocm/bin/hipcc square.cpp -o square.out.static
denizdius@denizdius-Precision-3561:~/Documents/hip-tests/samples/0_Intro/square$ /opt/rocm/bin/hipcc -use-staticlib square.cpp -o square.out.static
Warning: The -use-staticlib option has been deprecated and is no longer needed.
denizdius@denizdius-Precision-3561:~/Documents/hip-tests/samples/0_Intro/square$ ./square.out
error: 'invalid device ordinal'(101) at square.cpp:61
How can I solve this issue