Skip to content
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

A few minor additions to doc and scripts for gridpacks #714

Merged
merged 6 commits into from
Jun 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions epochX/cudacpp/CODEGEN/generateAndCompare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@ function codeGenAndDiff()
define ell- = e- mu- ta-
generate p p > ell+ ell- @0"
;;
pp_ttjjj) # From Sapta for CMS
cmd="define p = g u c d s u~ c~ d~ s~
define j = g u c d s u~ c~ d~ s~
define l+ = e+ mu+
define l- = e- mu-
define vl = ve vm vt
define vl~ = ve~ vm~ vt~
generate p p > t t~ j j j"
;;
*)
if [ "$cmdext" == "" ]; then
echo "ERROR! Unknown process '$proc' and no external process specified with '-c <cmd>'"
Expand Down
Empty file.
29 changes: 29 additions & 0 deletions epochX/cudacpp/README_CODEGEN.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ cd madgraph4gpu/epochX/cudacpp/

cd USER_gg_tt.mad

--------------------------------------------------------------------------------

EITHER: run the process directly

4a. Launch your process for FORTRAN

sed -i "s/.* = cudacpp_backend/FORTRAN = cudacpp_backend/" Cards/run_card.dat
Expand All @@ -58,4 +62,29 @@ 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

--------------------------------------------------------------------------------

OR: create gridpacks

5a. Create a gridpack using FORTRAN

sed -i "s/.* = gridpack/True = gridpack/" Cards/run_card.dat
sed -i "s/.* = cudacpp_backend/FORTRAN = cudacpp_backend/" Cards/run_card.dat
echo "r=21" > SubProcesses/randinit
./bin/generate_events -f

5b. Create a gridpack using CPP (with avx2)

sed -i "s/.* = gridpack/True = gridpack/" Cards/run_card.dat
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

5c. Create a gridpack using CUDA

sed -i "s/.* = gridpack/True = gridpack/" Cards/run_card.dat
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

--------------------------------------------------------------------------------
1 change: 1 addition & 0 deletions epochX/cudacpp/tlau/lauX.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# 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.

set -e # fail on error

Expand Down