-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Buildrules] Treat ROCM_CXXFLAGS/LDFLAGS as valid compiler flags #8271
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.