Closed GGKOP closed 8 months ago
Hello @GGKOP, our team has seen this sort of issue before and it is most commonly caused by a slight version mismatch. Specifically, if gcc-12 is detected but g++12 is not installed, hipcc goes into a fail condition. Please try the following and let us know if you are still facing this issue.
sudo apt install g++-12
Your guidance was helpful, and I truly appreciate the support.
I have a couple of additional questions regarding ROCm BLAS, and I was wondering if you could provide some insights: I'm interested in benchmarking with ROCm BLAS. Could you please guide me on the steps or any resources available for performing benchmarks using this library? Additionally, I'd like to delve into the details of convolutions using the ROCm BLAS library. Could you provide some direction or resources on how to use ROCm BLAS to gain insights into convolutional operations?
I am glad to hear that this solution worked for you. I can certainly shine some light and hopefully guide you to the appropriate resources.
As a part of building the rocBLAS library clients (flags -c, --clients), our benchmarking tool rocblas-bench is included. You may use this tool to gather performance on any of our BLAS functions. To start, here is the documentation for the tool:
https://rocm.docs.amd.com/projects/rocBLAS/en/latest/Programmers_Guide.html#rocblas-bench
In terms of convolutions, could you clarify more specifically what application you are referring to? BLAS libraries include L3 functions such as GEMM. These functions can be used by other libraries like MIOpen for arithmetic in the convolutional layers of a neural network. Alternatively, rocFFT would address convolutions by using Fourier transforms. You may need to get in touch with a different team for further insight on your use case.
If this issue has been resolved could you please close this ticket.
Description:
I am encountering an issue while configuring ROCm BLAS using CMake. The error message indicates a problem with the HIP C++ compiler (/opt/rocm/bin/hipcc). The specific error is: `-- The CXX compiler identification is unknown -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - failed -- Check for working CXX compiler: /opt/rocm/bin/hipcc -- Check for working CXX compiler: /opt/rocm/bin/hipcc - broken CMake Error at /usr/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake:62 (message): The C++ compiler
is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:35 (project)
-- Configuring incomplete, errors occurred! See also "/home/ricky/rocBLAS/build/release/CMakeFiles/CMakeOutput.log". See also "/home/ricky/rocBLAS/build/release/CMakeFiles/CMakeError.log". Traceback (most recent call last): File "/home/ricky/rocBLAS/./rmake.py", line 517, in
main()
File "/home/ricky/rocBLAS/./rmake.py", line 505, in main
if run_cmd(exe, opts):
File "/home/ricky/rocBLAS/./rmake.py", line 473, in run_cmd
proc = subprocess.run(program, check=True, stderr=subprocess.STDOUT, shell=True)
File "/home/ricky/miniforge3/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'cmake -DCMAKE_TOOLCHAIN_FILE=toolchain-linux.cmake -DROCM_DIR:PATH=/opt/rocm -DCPACK_PACKAGING_INSTALL_PREFIX=/opt/rocm -DCMAKE_INSTALL_PREFIX="rocblas-install" -DROCM_PATH=/opt/rocm -DCMAKE_PREFIX_PATH:PATH=/opt/rocm -DCPACK_SET_DESTDIR=OFF -DCMAKE_BUILD_TYPE=Release -DBUILD_CLIENTS_TESTS=ON -DBUILD_CLIENTS_BENCHMARKS=ON -DBUILD_CLIENTS_SAMPLES=ON -DBUILD_DIR=/home/ricky/rocBLAS/build -DLINK_BLIS=ON -DAMDGPU_TARGETS="all" -DTensile_CODE_OBJECT_VERSION=default -DTensile_LOGIC=asm_full -DTensile_SEPARATE_ARCHITECTURES=ON -DTensile_LAZY_LIBRARY_LOADING=ON -DTensile_LIBRARY_FORMAT=msgpack -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF /home/ricky/rocBLAS' returned non-zero exit status 1.
exit 1 ` Environment:
ROCm Version: 6.0.0 Operating System: Ubuntu 22.04.3 LTS (Jammy Jellyfish) Kernel Version: Linux ricky-MS-7D70 6.2.0-37-generic #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Steps to Reproduce:
Additional Information:
what can I do?