Skip to content

Commit

Permalink
[amd] ** COMPLETE AMD ** regenerate all processes (including getCompi…
Browse files Browse the repository at this point in the history
…ler for HIP)
  • Loading branch information
valassi committed Sep 20, 2024
1 parent 56814ca commit 11b5aa0
Show file tree
Hide file tree
Showing 73 changed files with 814 additions and 226 deletions.
16 changes: 8 additions & 8 deletions epochX/cudacpp/ee_mumu.mad/CODEGEN_mad_ee_mumu_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ generate e+ e- > mu+ mu-
No model currently active, so we import the Standard Model
INFO: load particles
INFO: load vertices
DEBUG: model prefixing takes 0.0057468414306640625 
DEBUG: model prefixing takes 0.00538945198059082 
INFO: Restrict model sm with file models/sm/restrict_default.dat .
DEBUG: Simplifying conditional expressions 
DEBUG: remove interactions: u s w+ at order: QED=1 
Expand Down Expand Up @@ -182,19 +182,19 @@ INFO: Finding symmetric diagrams for subprocess group epem_mupmum
DEBUG: iconfig_to_diag =  {1: 1, 2: 2} [model_handling.py at line 1547] 
DEBUG: diag_to_iconfig =  {1: 1, 2: 2} [model_handling.py at line 1548] 
Generated helas calls for 1 subprocesses (2 diagrams) in 0.004 s
Wrote files for 8 helas calls in 0.071 s
Wrote files for 8 helas calls in 0.070 s
DEBUG: self.vector_size =  32 [export_v4.py at line 7023] 
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates FFV2 routines
ALOHA: aloha creates FFV4 routines
ALOHA: aloha creates 3 routines in 0.204 s
ALOHA: aloha creates 3 routines in 0.201 s
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates FFV2 routines
ALOHA: aloha creates FFV4 routines
ALOHA: aloha creates FFV2_4 routines
ALOHA: aloha creates 7 routines in 0.261 s
ALOHA: aloha creates 7 routines in 0.254 s
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV2
Expand Down Expand Up @@ -234,10 +234,10 @@ Type "launch" to generate events from this process, or see
Run "open index.html" to see more information about this process.
quit

real 0m2.993s
user 0m1.803s
sys 0m0.263s
Code generation completed in 3 seconds
real 0m2.037s
user 0m1.778s
sys 0m0.250s
Code generation completed in 2 seconds
************************************************************
* *
* W E L C O M E to *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,18 @@ namespace mg5amcCpu
CPPProcess::getCompiler()
{
std::stringstream out;
// HIP version (HIPCC)
// [Use __HIPCC__ instead of MGONGPUCPP_GPUIMPL here!]
// [This tests if 'hipcc' was used even to build a .cc file, even if not necessarily 'nvcc -x cu' for a .cu file]
// [Check 'hipcc -dM -E -x hip -I ../../src CPPProcess.cc | grep HIP']
#ifdef __HIPCC__
#if defined HIP_VERSION_MAJOR && defined HIP_VERSION_MINOR && defined HIP_VERSION_PATCH
out << "hipcc " << HIP_VERSION_MAJOR << "." << HIP_VERSION_MINOR << "." << HIP_VERSION_PATCH;
#else
out << "hipcc UNKNOWN";
#endif
out << " (";
#endif
// CUDA version (NVCC)
// [Use __NVCC__ instead of MGONGPUCPP_GPUIMPL here!]
// [This tests if 'nvcc' was used even to build a .cc file, even if not necessarily 'nvcc -x cu' for a .cu file]
Expand Down Expand Up @@ -684,7 +696,7 @@ namespace mg5amcCpu
out << "gcc UNKNOWKN";
#endif
#endif
#if defined __NVCC__ or defined __INTEL_LLVM_COMPILER
#if defined __HIPCC__ or defined __NVCC__ or defined __INTEL_LLVM_COMPILER
out << ")";
#endif
return out.str();
Expand Down
12 changes: 6 additions & 6 deletions epochX/cudacpp/ee_mumu.sa/CODEGEN_cudacpp_ee_mumu_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ generate e+ e- > mu+ mu-
No model currently active, so we import the Standard Model
INFO: load particles
INFO: load vertices
DEBUG: model prefixing takes 0.005699872970581055 
DEBUG: model prefixing takes 0.005523681640625 
INFO: Restrict model sm with file models/sm/restrict_default.dat .
DEBUG: Simplifying conditional expressions 
DEBUG: remove interactions: u s w+ at order: QED=1 
Expand Down Expand Up @@ -149,7 +149,7 @@ INFO: Checking for minimal orders which gives processes.
INFO: Please specify coupling orders to bypass this step.
INFO: Trying process: e+ e- > mu+ mu- WEIGHTED<=4 @1
INFO: Process has 2 diagrams
1 processes with 2 diagrams generated in 0.005 s
1 processes with 2 diagrams generated in 0.004 s
Total: 1 processes with 2 diagrams
output standalone_cudacpp ../TMPOUT/CODEGEN_cudacpp_ee_mumu
Load PLUGIN.CUDACPP_OUTPUT
Expand Down Expand Up @@ -177,7 +177,7 @@ ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates FFV2 routines
ALOHA: aloha creates FFV4 routines
ALOHA: aloha creates FFV2_4 routines
ALOHA: aloha creates 4 routines in 0.273 s
ALOHA: aloha creates 4 routines in 0.268 s
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV2
Expand All @@ -196,7 +196,7 @@ INFO: Created files Parameters_sm.h and Parameters_sm.cc in directory
INFO: /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_cudacpp_ee_mumu/src/. and /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_cudacpp_ee_mumu/src/.
quit

real 0m0.661s
user 0m0.607s
sys 0m0.048s
real 0m0.670s
user 0m0.594s
sys 0m0.051s
Code generation completed in 1 seconds
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,18 @@ namespace mg5amcCpu
CPPProcess::getCompiler()
{
std::stringstream out;
// HIP version (HIPCC)
// [Use __HIPCC__ instead of MGONGPUCPP_GPUIMPL here!]
// [This tests if 'hipcc' was used even to build a .cc file, even if not necessarily 'nvcc -x cu' for a .cu file]
// [Check 'hipcc -dM -E -x hip -I ../../src CPPProcess.cc | grep HIP']
#ifdef __HIPCC__
#if defined HIP_VERSION_MAJOR && defined HIP_VERSION_MINOR && defined HIP_VERSION_PATCH
out << "hipcc " << HIP_VERSION_MAJOR << "." << HIP_VERSION_MINOR << "." << HIP_VERSION_PATCH;
#else
out << "hipcc UNKNOWN";
#endif
out << " (";
#endif
// CUDA version (NVCC)
// [Use __NVCC__ instead of MGONGPUCPP_GPUIMPL here!]
// [This tests if 'nvcc' was used even to build a .cc file, even if not necessarily 'nvcc -x cu' for a .cu file]
Expand Down Expand Up @@ -682,7 +694,7 @@ namespace mg5amcCpu
out << "gcc UNKNOWKN";
#endif
#endif
#if defined __NVCC__ or defined __INTEL_LLVM_COMPILER
#if defined __HIPCC__ or defined __NVCC__ or defined __INTEL_LLVM_COMPILER
out << ")";
#endif
return out.str();
Expand Down
18 changes: 9 additions & 9 deletions epochX/cudacpp/gg_tt.mad/CODEGEN_mad_gg_tt_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ generate g g > t t~
No model currently active, so we import the Standard Model
INFO: load particles
INFO: load vertices
DEBUG: model prefixing takes 0.005692720413208008 
DEBUG: model prefixing takes 0.005460500717163086 
INFO: Restrict model sm with file models/sm/restrict_default.dat .
DEBUG: Simplifying conditional expressions 
DEBUG: remove interactions: u s w+ at order: QED=1 
Expand Down Expand Up @@ -150,7 +150,7 @@ INFO: Please specify coupling orders to bypass this step.
INFO: Trying coupling order WEIGHTED<=2: WEIGTHED IS QCD+2*QED
INFO: Trying process: g g > t t~ WEIGHTED<=2 @1
INFO: Process has 3 diagrams
1 processes with 3 diagrams generated in 0.009 s
1 processes with 3 diagrams generated in 0.008 s
Total: 1 processes with 3 diagrams
output madevent_simd ../TMPOUT/CODEGEN_mad_gg_tt --hel_recycling=False --vector_size=32
Load PLUGIN.CUDACPP_OUTPUT
Expand Down Expand Up @@ -183,16 +183,16 @@ INFO: Finding symmetric diagrams for subprocess group gg_ttx
DEBUG: iconfig_to_diag =  {1: 1, 2: 2, 3: 3} [model_handling.py at line 1547] 
DEBUG: diag_to_iconfig =  {1: 1, 2: 2, 3: 3} [model_handling.py at line 1548] 
Generated helas calls for 1 subprocesses (3 diagrams) in 0.006 s
Wrote files for 10 helas calls in 0.073 s
Wrote files for 10 helas calls in 0.072 s
DEBUG: self.vector_size =  32 [export_v4.py at line 7023] 
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates VVV1 set of routines with options: P0
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates 2 routines in 0.147 s
ALOHA: aloha creates 2 routines in 0.144 s
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates VVV1 set of routines with options: P0
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates 4 routines in 0.135 s
ALOHA: aloha creates 4 routines in 0.132 s
<class 'aloha.create_aloha.AbstractRoutine'> VVV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
Expand Down Expand Up @@ -228,10 +228,10 @@ Type "launch" to generate events from this process, or see
Run "open index.html" to see more information about this process.
quit

real 0m3.852s
user 0m1.633s
sys 0m0.277s
Code generation completed in 4 seconds
real 0m1.906s
user 0m1.620s
sys 0m0.257s
Code generation completed in 2 seconds
************************************************************
* *
* W E L C O M E to *
Expand Down
14 changes: 13 additions & 1 deletion epochX/cudacpp/gg_tt.mad/SubProcesses/P1_gg_ttx/CPPProcess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,18 @@ namespace mg5amcCpu
CPPProcess::getCompiler()
{
std::stringstream out;
// HIP version (HIPCC)
// [Use __HIPCC__ instead of MGONGPUCPP_GPUIMPL here!]
// [This tests if 'hipcc' was used even to build a .cc file, even if not necessarily 'nvcc -x cu' for a .cu file]
// [Check 'hipcc -dM -E -x hip -I ../../src CPPProcess.cc | grep HIP']
#ifdef __HIPCC__
#if defined HIP_VERSION_MAJOR && defined HIP_VERSION_MINOR && defined HIP_VERSION_PATCH
out << "hipcc " << HIP_VERSION_MAJOR << "." << HIP_VERSION_MINOR << "." << HIP_VERSION_PATCH;
#else
out << "hipcc UNKNOWN";
#endif
out << " (";
#endif
// CUDA version (NVCC)
// [Use __NVCC__ instead of MGONGPUCPP_GPUIMPL here!]
// [This tests if 'nvcc' was used even to build a .cc file, even if not necessarily 'nvcc -x cu' for a .cu file]
Expand Down Expand Up @@ -699,7 +711,7 @@ namespace mg5amcCpu
out << "gcc UNKNOWKN";
#endif
#endif
#if defined __NVCC__ or defined __INTEL_LLVM_COMPILER
#if defined __HIPCC__ or defined __NVCC__ or defined __INTEL_LLVM_COMPILER
out << ")";
#endif
return out.str();
Expand Down
12 changes: 6 additions & 6 deletions epochX/cudacpp/gg_tt.sa/CODEGEN_cudacpp_gg_tt_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ generate g g > t t~
No model currently active, so we import the Standard Model
INFO: load particles
INFO: load vertices
DEBUG: model prefixing takes 0.005693674087524414 
DEBUG: model prefixing takes 0.005527973175048828 
INFO: Restrict model sm with file models/sm/restrict_default.dat .
DEBUG: Simplifying conditional expressions 
DEBUG: remove interactions: u s w+ at order: QED=1 
Expand Down Expand Up @@ -176,7 +176,7 @@ Generated helas calls for 1 subprocesses (3 diagrams) in 0.006 s
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates VVV1 set of routines with options: P0
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates 2 routines in 0.147 s
ALOHA: aloha creates 2 routines in 0.143 s
<class 'aloha.create_aloha.AbstractRoutine'> VVV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
Expand All @@ -191,7 +191,7 @@ INFO: Created files Parameters_sm.h and Parameters_sm.cc in directory
INFO: /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_cudacpp_gg_tt/src/. and /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_cudacpp_gg_tt/src/.
quit

real 0m1.981s
user 0m0.486s
sys 0m0.050s
Code generation completed in 2 seconds
real 0m0.539s
user 0m0.474s
sys 0m0.047s
Code generation completed in 1 seconds
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,18 @@ namespace mg5amcCpu
CPPProcess::getCompiler()
{
std::stringstream out;
// HIP version (HIPCC)
// [Use __HIPCC__ instead of MGONGPUCPP_GPUIMPL here!]
// [This tests if 'hipcc' was used even to build a .cc file, even if not necessarily 'nvcc -x cu' for a .cu file]
// [Check 'hipcc -dM -E -x hip -I ../../src CPPProcess.cc | grep HIP']
#ifdef __HIPCC__
#if defined HIP_VERSION_MAJOR && defined HIP_VERSION_MINOR && defined HIP_VERSION_PATCH
out << "hipcc " << HIP_VERSION_MAJOR << "." << HIP_VERSION_MINOR << "." << HIP_VERSION_PATCH;
#else
out << "hipcc UNKNOWN";
#endif
out << " (";
#endif
// CUDA version (NVCC)
// [Use __NVCC__ instead of MGONGPUCPP_GPUIMPL here!]
// [This tests if 'nvcc' was used even to build a .cc file, even if not necessarily 'nvcc -x cu' for a .cu file]
Expand Down Expand Up @@ -696,7 +708,7 @@ namespace mg5amcCpu
out << "gcc UNKNOWKN";
#endif
#endif
#if defined __NVCC__ or defined __INTEL_LLVM_COMPILER
#if defined __HIPCC__ or defined __NVCC__ or defined __INTEL_LLVM_COMPILER
out << ")";
#endif
return out.str();
Expand Down
16 changes: 8 additions & 8 deletions epochX/cudacpp/gg_tt01g.mad/CODEGEN_mad_gg_tt01g_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ generate g g > t t~
No model currently active, so we import the Standard Model
INFO: load particles
INFO: load vertices
DEBUG: model prefixing takes 0.005487680435180664 
DEBUG: model prefixing takes 0.005461454391479492 
INFO: Restrict model sm with file models/sm/restrict_default.dat .
DEBUG: Simplifying conditional expressions 
DEBUG: remove interactions: u s w+ at order: QED=1 
Expand Down Expand Up @@ -203,23 +203,23 @@ INFO: Finding symmetric diagrams for subprocess group gg_ttx
DEBUG: len(subproc_diagrams_for_config) =  3 [model_handling.py at line 1523] 
DEBUG: iconfig_to_diag =  {1: 1, 2: 2, 3: 3} [model_handling.py at line 1547] 
DEBUG: diag_to_iconfig =  {1: 1, 2: 2, 3: 3} [model_handling.py at line 1548] 
Generated helas calls for 2 subprocesses (19 diagrams) in 0.043 s
Wrote files for 46 helas calls in 0.190 s
Generated helas calls for 2 subprocesses (19 diagrams) in 0.042 s
Wrote files for 46 helas calls in 0.187 s
DEBUG: self.vector_size =  32 [export_v4.py at line 7023] 
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates VVV1 routines
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates VVVV1 set of routines with options: P0
ALOHA: aloha creates VVVV3 set of routines with options: P0
ALOHA: aloha creates VVVV4 set of routines with options: P0
ALOHA: aloha creates 5 routines in 0.334 s
ALOHA: aloha creates 5 routines in 0.327 s
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates VVV1 routines
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates VVVV1 set of routines with options: P0
ALOHA: aloha creates VVVV3 set of routines with options: P0
ALOHA: aloha creates VVVV4 set of routines with options: P0
ALOHA: aloha creates 10 routines in 0.316 s
ALOHA: aloha creates 10 routines in 0.312 s
<class 'aloha.create_aloha.AbstractRoutine'> VVV1
<class 'aloha.create_aloha.AbstractRoutine'> VVV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
Expand Down Expand Up @@ -267,9 +267,9 @@ Type "launch" to generate events from this process, or see
Run "open index.html" to see more information about this process.
quit

real 0m2.703s
user 0m2.310s
sys 0m0.313s
real 0m2.577s
user 0m2.251s
sys 0m0.321s
Code generation completed in 2 seconds
************************************************************
* *
Expand Down
14 changes: 13 additions & 1 deletion epochX/cudacpp/gg_tt01g.mad/SubProcesses/P1_gg_ttx/CPPProcess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,18 @@ namespace mg5amcCpu
CPPProcess::getCompiler()
{
std::stringstream out;
// HIP version (HIPCC)
// [Use __HIPCC__ instead of MGONGPUCPP_GPUIMPL here!]
// [This tests if 'hipcc' was used even to build a .cc file, even if not necessarily 'nvcc -x cu' for a .cu file]
// [Check 'hipcc -dM -E -x hip -I ../../src CPPProcess.cc | grep HIP']
#ifdef __HIPCC__
#if defined HIP_VERSION_MAJOR && defined HIP_VERSION_MINOR && defined HIP_VERSION_PATCH
out << "hipcc " << HIP_VERSION_MAJOR << "." << HIP_VERSION_MINOR << "." << HIP_VERSION_PATCH;
#else
out << "hipcc UNKNOWN";
#endif
out << " (";
#endif
// CUDA version (NVCC)
// [Use __NVCC__ instead of MGONGPUCPP_GPUIMPL here!]
// [This tests if 'nvcc' was used even to build a .cc file, even if not necessarily 'nvcc -x cu' for a .cu file]
Expand Down Expand Up @@ -699,7 +711,7 @@ namespace mg5amcCpu
out << "gcc UNKNOWKN";
#endif
#endif
#if defined __NVCC__ or defined __INTEL_LLVM_COMPILER
#if defined __HIPCC__ or defined __NVCC__ or defined __INTEL_LLVM_COMPILER
out << ")";
#endif
return out.str();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,18 @@ namespace mg5amcCpu
CPPProcess::getCompiler()
{
std::stringstream out;
// HIP version (HIPCC)
// [Use __HIPCC__ instead of MGONGPUCPP_GPUIMPL here!]
// [This tests if 'hipcc' was used even to build a .cc file, even if not necessarily 'nvcc -x cu' for a .cu file]
// [Check 'hipcc -dM -E -x hip -I ../../src CPPProcess.cc | grep HIP']
#ifdef __HIPCC__
#if defined HIP_VERSION_MAJOR && defined HIP_VERSION_MINOR && defined HIP_VERSION_PATCH
out << "hipcc " << HIP_VERSION_MAJOR << "." << HIP_VERSION_MINOR << "." << HIP_VERSION_PATCH;
#else
out << "hipcc UNKNOWN";
#endif
out << " (";
#endif
// CUDA version (NVCC)
// [Use __NVCC__ instead of MGONGPUCPP_GPUIMPL here!]
// [This tests if 'nvcc' was used even to build a .cc file, even if not necessarily 'nvcc -x cu' for a .cu file]
Expand Down Expand Up @@ -920,7 +932,7 @@ namespace mg5amcCpu
out << "gcc UNKNOWKN";
#endif
#endif
#if defined __NVCC__ or defined __INTEL_LLVM_COMPILER
#if defined __HIPCC__ or defined __NVCC__ or defined __INTEL_LLVM_COMPILER
out << ")";
#endif
return out.str();
Expand Down
Loading

0 comments on commit 11b5aa0

Please sign in to comment.