Closed wangzy0327 closed 1 year ago
Your build command doesn't work, so you must be modifying the source. Please build using make hip
after setting make.defs
properly.
~/PRK/Cxx11> hipcc -g --offload-arch=gfx908:xnack+:sramecc- -DTCE_HIP -fno-gpu-rdc stencil-hip.cc -o stencil-hip
stencil-hip.cc:87:56: error: use of undeclared identifier 'PRKVERSION'
std::cout << "Parallel Research Kernels version " << PRKVERSION << std::endl;
xnack+
is the problem on my end. Without it, I see this error:
"hipErrorNoBinaryForGpu: Unable to find code object for all current devices!"
make.defs.hip
is actually a good template for make.defs
. Please use it.
What type of issue is this?
Bug in the stencil code when code ran in hip platform
If this is a bug report, please use the following template. Otherwise, please delete the rest of the template.
Where does this bug appear?
Linux Ubuntu 20.04
Operating system
Linux gxn1275 5.16.0 #1 SMP PREEMPT Tue Sep 20 02:10:11 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Compiler
hipcc --version
PRK build information
hipcc -g --offload-arch=gfx908:xnack+:sramecc- -DTCE_HIP -fno-gpu-rdc stencil-hip.cc -o stencil-hip
Output showing problem
@jeffhammond