-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
CUDA build rules may fail for patch releases #44626
Comments
assign core, heterogeneous |
New categories assigned: core,heterogeneous @Dr15Jones,@fwyzard,@makortel,@makortel,@smuzaffar you have been requested to review this Pull request/Issue and eventually sign? Thanks |
cms-bot internal usage |
A new Issue was created by @fwyzard. @smuzaffar, @rappoccio, @sextonkennedy, @antoniovilela, @makortel, @Dr15Jones can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
A simple way to reproduce is (any recent patch release should work) cmsrel CMSSW_13_3_2_patch1
cd CMSSW_13_3_2_patch1/src
cmsenv
git cms-init
git cms-addpkg HeterogeneousTest/CUDAKernel
scram b which results in
|
@fwyzard cms-sw/cmsdist#9115 (which contains the change cms-sw/cmssw-config@31ea067) should fix this for 14.1.X. I will backport the change to 14.0 |
@smuzaffar great, many thanks for the quick fix! |
+heterogeneous |
+core |
This issue is fully signed and ready to be closed. |
While testing #44622 we encountered the possibility that the current CUDA build rules for device code may fail in the case of patch releases, if a package needs a device static library from another package.
Copying from this comment:
@smuzaffar the error seems to point to a problem with our CUDA build rules.
If I add locally the unmodified package
HeterogeneousTest/CUDADevice
, the build succeeds.Comparing the failing and working commands, the failing one uses
while the working one uses
The difference is that the second adds
In fact
$CMSSW_BASE/static/$SCRAM_ARCH/libHeterogeneousTestCUDADevice_nv.a
exists (after adding the package locally and building it), while$CMSSW_RELEASE_BASE/static/$SCRAM_ARCH/libHeterogeneousTestCUDADevice_nv.a
does not exist.Is that because the base release (
CMSSW_14_1_X_2024-04-04-1100
) is a patch release ?$CMSSW_FULL_RELEASE_BASE/static/$SCRAM_ARCH/libHeterogeneousTestCUDADevice_nv.a
does exist.Maybe the CUDA build rules need to be updated to look under
$CMSSW_FULL_RELEASE_BASE/static
for the static libraries ?The text was updated successfully, but these errors were encountered: