Skip to content

Fix cudacpp makefile for installations (e.g. in CMS) where nvcc exists but curand and nvtx headers are missing #966

Merged
valassi merged 6 commits intomadgraph5:masterfrom
valassi:curand
Aug 21, 2024
Merged

Fix cudacpp makefile for installations (e.g. in CMS) where nvcc exists but curand and nvtx headers are missing #966
valassi merged 6 commits intomadgraph5:masterfrom
valassi:curand

Conversation

@valassi
Copy link
Member

@valassi valassi commented Aug 14, 2024

Hi @oliviermattelaer this is a very simple PR, which only modifies the cudacpp.mk for installations (e.g. in CMS) where nvcc exists but curand and nvtx headers are missing.

It fixes the issues reported by @choij1589 in #965 and at the meeting yesterday.

Jin could already work around the issue by setting USE_NVTX= HASCURAND=hasNoCurand but I think that t is much better if some sanity checks for the existence of the headers is done elsewhere. (Yes I know cmake would make that out of the box, but we are not there).

Can you have a look please? This is rather standalone and independent from all other PRs I submitted.

Thanks
Andrea

@valassi
Copy link
Member Author

valassi commented Aug 19, 2024

Hi @oliviermattelaer can you review this one? It fixes the issue #965, @choij1589 confirms it is good.

(Note, some CI tests are failing because of Mac configuration issues #971... orthogonal to this issue)

Thanks

Copy link
Member

@oliviermattelaer oliviermattelaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can move forward (even if it is indeed a strong argument to move to a more automatic/flexible way to compile the code, like you said

@valassi
Copy link
Member Author

valassi commented Aug 21, 2024

(Note, some CI tests are failing because of Mac configuration issues #971... orthogonal to this issue)

This is now fixed in PR #974 which I will merge. But I will not rerun MAc tests for this 966

@valassi
Copy link
Member Author

valassi commented Aug 21, 2024

This can move forward (even if it is indeed a strong argument to move to a more automatic/flexible way to compile the code, like you said

Thanks @oliviermattelaer ! Ok so I am merging this one.

@valassi valassi merged commit 7ae02b5 into madgraph5:master Aug 21, 2024
valassi added a commit to valassi/madgraph4gpu that referenced this pull request Aug 21, 2024
valassi added a commit to valassi/madgraph4gpu that referenced this pull request Aug 21, 2024
… mac madgraph5#974, nvcc madgraph5#966) into june24

Fix conflicts:
	epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/MG5aMC_patches/PROD/patch.P1
	epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/madgraph/iolibs/template_files/gpu/counters.cc
	epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/madgraph/iolibs/template_files/gpu/fbridge.cc
	epochX/cudacpp/gg_tt.mad/SubProcesses/P1_gg_ttx/auto_dsig1.f
	epochX/cudacpp/gg_tt.mad/SubProcesses/counters.cc
	epochX/cudacpp/gg_tt.mad/SubProcesses/fbridge.cc

NB: here I essentially fixed gg_tt.mad, not CODEGEN, which will need to be adjusted a posteriori with a backport

In particular:
- Note1: patch.P1 is now taken from june24, but will need to be recomputed
git checkout HEAD CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/MG5aMC_patches/PROD/patch.P1
- Note2: I need to manually port some upstream/master changes in auto_dsig1.f to smatrix_multi.f, which did not yet exist
valassi added a commit to valassi/madgraph4gpu that referenced this pull request Aug 21, 2024
… mac madgraph5#974, nvcc madgraph5#966) into pptt

Fix conflicts:
	epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/MG5aMC_patches/PROD/patch.P1 (take HEAD version, must recompute)
	epochX/cudacpp/gg_tt.mad/SubProcesses/P1_gg_ttx/auto_dsig1.f (fix manually)
valassi added a commit to valassi/madgraph4gpu that referenced this pull request Aug 21, 2024
valassi added a commit to valassi/madgraph4gpu that referenced this pull request Aug 22, 2024
valassi added a commit to valassi/madgraph4gpu that referenced this pull request Aug 22, 2024
…dgraph5#960, mac madgraph5#974, nvcc madgraph5#966) into cmsdy

Fix conflict in tlau/fromgridpacks/parseGridpackLogs.sh
(use the currenmt cmsdy version: git checkout b125b65 tlau/fromgridpacks/parseGridpackLogs.sh)
valassi added a commit to valassi/madgraph4gpu that referenced this pull request Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compilation Error in cudacpp_backend=cpp for CMS DY+nj and TT+nj (nvcc exists but not NVTX or curand)

2 participants