-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #709 from valassi/launch
first systematic 'launch'-like tests (and move to the latest select_color upstream)
- Loading branch information
Showing
344 changed files
with
943,964 additions
and
6,571 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ecf424f8f | ||
ebcb307fa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Copyright (C) 2020-2023 CERN and UCLouvain. | ||
# Licensed under the GNU Lesser General Public License (version 3 or later). | ||
# Created by: A. Valassi (Jun 2023) for the MG5aMC CUDACPP plugin. | ||
# Further modified by: A. Valassi (2023) for the MG5aMC CUDACPP plugin. | ||
|
||
[Last updated Mon 19 June 2023] | ||
|
||
This README contains **TEMPORARY** instructions for end users for generating CUDACPP code for MG5AMC. | ||
It relies on using both the madgraph4gpu and mg5amcnlo github repositories. | ||
Eventually, CUDACPP code generation will be fully integrated into the mg5amcnlo github repository. | ||
NB: gridpack generation is not documented/supported yet. | ||
|
||
0. Set up your favorite compilers | ||
|
||
Example: | ||
echo $CXX | ||
/cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-ad950/x86_64-centos8/bin/g++ | ||
echo $FC | ||
/cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-ad950/x86_64-centos8/bin/gfortran | ||
which nvcc | ||
/usr/local/cuda-12.0/bin/nvcc | ||
|
||
1. Download mg5amcnlo | ||
|
||
cd <userdir> | ||
git clone -b gpucpp --single-branch git@github.com:mg5amcnlo/mg5amcnlo | ||
|
||
export MG5AMC_HOME=$(pwd)/mg5amcnlo | ||
|
||
2. Download madgraph4gpu | ||
|
||
cd <userdir> | ||
git clone -b master --single-branch git@github.com:madgraph5/madgraph4gpu.git | ||
|
||
cd madgraph4gpu/epochX/cudacpp/ | ||
|
||
3. Generate your favorite process | ||
|
||
./CODEGEN/generateAndCompare.sh --mad USER_gg_tt -c 'generate g g > t t~' | ||
|
||
cd USER_gg_tt.mad | ||
|
||
4a. Launch your process for FORTRAN | ||
|
||
sed -i "s/.* = cudacpp_backend/FORTRAN = cudacpp_backend/" Cards/run_card.dat | ||
echo "r=21" > SubProcesses/randinit | ||
./bin/generate_events -f | ||
|
||
4b. Launch your process for CPP (with AVX2) | ||
|
||
sed -i "s/.* = cudacpp_backend/CPP = cudacpp_backend/" Cards/run_card.dat | ||
echo "r=21" > SubProcesses/randinit | ||
AVX=avx2 MG5AMC_CARD_PATH=$(pwd)/Cards ./bin/generate_events -f | ||
|
||
4c. Launch your process for CUDA | ||
|
||
sed -i "s/.* = cudacpp_backend/CUDA = cudacpp_backend/" Cards/run_card.dat | ||
echo "r=21" > SubProcesses/randinit | ||
MG5AMC_CARD_PATH=$(pwd)/Cards ./bin/generate_events -f | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.