[Buildrules] Treat ROCM_CXXFLAGS/LDFLAGS as valid compiler flags#8271
[Buildrules] Treat ROCM_CXXFLAGS/LDFLAGS as valid compiler flags#8271smuzaffar merged 2 commits intoIB/CMSSW_13_0_X/masterfrom
Conversation
|
A new Pull Request was created by @smuzaffar (Malik Shahzad Muzaffar) for branch IB/CMSSW_13_0_X/master. @cmsbuild, @smuzaffar, @aandvalenzuela, @iarspider can you please review it and eventually sign? Thanks. |
|
please test with cms-sw/cmssw#40619 |
|
-1 Failed Tests: Build The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic: You can see more details here: BuildI found compilation error when building: >> Package HeterogeneousCore/ROCmServices built >> Compiling /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_0_X_2023-01-29-1100/src/HeterogeneousCore/ROCmServices/bin/rocmComputeCapabilities.cpp >> Compiling /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_0_X_2023-01-29-1100/src/HeterogeneousCore/ROCmServices/bin/isRocmDeviceSupported.hip.cc >> Building binary rocmComputeCapabilities /data/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/el8_amd64_gcc11/external/gcc/11.2.1-f9b9dfdd886f71cd63f5538223d8f161/bin/../lib/gcc/x86_64-redhat-linux-gnu/11.2.1/../../../../x86_64-redhat-linux-gnu/bin/ld: tmp/el8_amd64_gcc11/src/HeterogeneousCore/ROCmServices/bin/rocmComputeCapabilities/isRocmDeviceSupported.hip.cc.o:(.hipFatBinSegment+0x8): undefined reference to `__hip_fatbin' collect2: error: ld returned 1 exit status >> Deleted: tmp/el8_amd64_gcc11/src/HeterogeneousCore/ROCmServices/bin/rocmComputeCapabilities/rocmComputeCapabilities gmake: *** [tmp/el8_amd64_gcc11/src/HeterogeneousCore/ROCmServices/bin/rocmComputeCapabilities/rocmComputeCapabilities] Error 1 >> Compiling /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_0_X_2023-01-29-1100/src/HeterogeneousCore/ROCmServices/bin/rocmIsEnabled.cpp >> Compiling /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_13_0_X_2023-01-29-1100/src/HeterogeneousCore/ROCmServices/bin/isRocmDeviceSupported.hip.cc >> Building binary rocmIsEnabled |
|
test parameters:
|
|
please test |
|
@fwyzard , any idea why we get |
|
I think it's because the final link is being done with |
|
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-aa10a1/30238/summary.html The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic: You can see more details here: Comparison SummarySummary:
|
@fwyzard that is true and using hipcc forlinking needs a careful thinking and I will do not in next PR . By the way, I was able to link and run hip application if I explicitly link with |
|
No, that is not enough to make the program work. does link, but the resulting binary does not run: I think because it is still missing the generation and linking of the device-side code and kernel launches. |
|
Pull request #8271 was updated. |
No description provided.