Skip to content

[Issue]: RPP Test Suite - HIP: Link error with OpenMP #492

@kiritigowda

Description

@kiritigowda

Problem Description

3: [ 75%] Linking CXX executable Tensor_misc_hip
3: ld.lld: error: undefined symbol: omp_register_coarse_grain_mem
3: >>> referenced by Tensor_misc_hip.cpp
3: >>>               CMakeFiles/Tensor_misc_hip.dir/Tensor_misc_hip.cpp.o:(_ovlh_hipHostMalloc(void**, unsigned long, unsigned int))
3: >>> referenced by Tensor_misc_hip.cpp
3: >>>               CMakeFiles/Tensor_misc_hip.dir/Tensor_misc_hip.cpp.o:(_ovlh_hipMalloc(void**, unsigned long))
3: clang++: error: linker command failed with exit code 1 (use -v to see invocation)
3: make[2]: *** [CMakeFiles/Tensor_misc_hip.dir/build.make:157: Tensor_misc_hip] Error 1
3: make[1]: *** [CMakeFiles/Makefile2:111: CMakeFiles/Tensor_misc_hip.dir/all] Error 2
3: make[1]: *** Waiting for unfinished jobs....
3: [100%] Linking CXX executable Tensor_hip
3: ld.lld: error: undefined symbol: omp_register_coarse_grain_mem
3: >>> referenced by Tensor_hip.cpp
3: >>>               CMakeFiles/Tensor_hip.dir/Tensor_hip.cpp.o:(_ovlh_hipHostMalloc(void**, unsigned long, unsigned int))
3: >>> referenced by Tensor_hip.cpp
3: >>>               CMakeFiles/Tensor_hip.dir/Tensor_hip.cpp.o:(_ovlh_hipMalloc(void**, unsigned long))
3: clang++: error: linker command failed with exit code 1 (use -v to see invocation)
3: make[2]: *** [CMakeFiles/Tensor_hip.dir/build.make:157: Tensor_hip] Error 1
3: make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/Tensor_hip.dir/all] Error 2
3: make: *** [Makefile:91: all] Error 2
3: 
3: 
3: ./Tensor_hip /opt/rocm-6.4.0/share/rpp/test/HIP/../TEST_IMAGES/three_images_mixed_src1 /opt/rocm-6.4.0/share/rpp/test/HIP/../TEST_IMAGES/three_images_mixed_src2 /root/test/QA_RESULTS_HIP_2024-12-20_20-03-05 0 0 0 0 1 0 0
3: Traceback (most recent call last):
3:   File "/opt/rocm/share/rpp/test/HIP/runTests.py", line 307, in <module>
3:     run_unit_test(srcPath1, srcPath2, dstPathTemp, case, numRuns, testType, layout, qaMode, decoderType, batchSize, roiList)
3:   File "/opt/rocm/share/rpp/test/HIP/runTests.py", line 91, in run_unit_test
3:     result = subprocess.Popen([buildFolderPath + "/build/Tensor_hip", srcPath1, srcPath2, dstPathTemp, str(bitDepth), str(outputFormatToggle), str(case), "0", str(numRuns), str(testType), str(layout), "0", str(qaMode), str(decoderType), str(batchSize)] + roiList + [scriptPath], stdout=subprocess.PIPE, stderr=subprocess.PIPE)    # nosec
3:   File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
3:     self._execute_child(args, executable, preexec_fn, close_fds,
3:   File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
3:     raise child_exception_type(errno_num, err_msg, err_filename)
3: FileNotFoundError: [Errno 2] No such file or directory: '/root/test/build/Tensor_hip'
1/1 Test #3: rpp_qa_tests_tensor_hip_all ......***Failed   18.20 sec

Operating System

ALL

CPU

ALL

GPU

AMD Instinct MI300

Other

No response

ROCm Version

ROCm 6.0.0

ROCm Component

rpp

Steps to Reproduce

Latest Mainline failures

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions