Skip to content

Commit

Permalink
Merge branch 'grid' (WIP on gridpack time profiling madgraph5#957) in…
Browse files Browse the repository at this point in the history
…to cmsdy
  • Loading branch information
valassi committed Aug 7, 2024
2 parents e95bdf2 + 1cbca07 commit 7e6489f
Show file tree
Hide file tree
Showing 14 changed files with 12,038 additions and 76 deletions.
78 changes: 39 additions & 39 deletions epochX/cudacpp/gq_ttq.mad/CODEGEN_mad_gq_ttq_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ Note that you can still compile and run aMC@NLO with the built-in PDFs
MG5_aMC> set lhapdf /PATH/TO/lhapdf-config

Using default text editor "vi". Set another one in ./input/mg5_configuration.txt
Using default eps viewer "evince". Set another one in ./input/mg5_configuration.txt
No valid eps viewer found. Please set in ./input/mg5_configuration.txt
Using default web browser "firefox". Set another one in ./input/mg5_configuration.txt
import /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq.mg
import /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq.mg
The import format was not given, so we guess it as command
set stdout_level DEBUG
set output information to level: 10
set zerowidth_tchannel F
define q = u c d s u~ c~ d~ s~
INFO: load particles
INFO: load vertices
DEBUG: model prefixing takes 0.005633831024169922 
DEBUG: model prefixing takes 0.003599882125854492 
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 @@ -170,7 +170,7 @@ INFO: Crossed process found for g u~ > t t~ u~, reuse diagrams.
INFO: Crossed process found for g c~ > t t~ c~, reuse diagrams.
INFO: Crossed process found for g d~ > t t~ d~, reuse diagrams.
INFO: Crossed process found for g s~ > t t~ s~, reuse diagrams.
8 processes with 40 diagrams generated in 0.080 s
8 processes with 40 diagrams generated in 0.055 s
Total: 8 processes with 40 diagrams
output madevent_simd ../TMPOUT/CODEGEN_mad_gq_ttq --hel_recycling=False --vector_size=32
Load PLUGIN.CUDACPP_OUTPUT
Expand All @@ -184,10 +184,10 @@ It has been validated for the last time with version: 3.5.2
INFO: initialize a new directory: CODEGEN_mad_gq_ttq
INFO: remove old information in CODEGEN_mad_gq_ttq
DEBUG: Entering PLUGIN_ProcessExporter.copy_template (initialise the directory) [output.py at line 167] 
WARNING: File exists /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq 
INFO: Creating subdirectories in directory /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq
WARNING: File exists /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/Cards 
WARNING: File exists /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/SubProcesses 
WARNING: File exists /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq 
INFO: Creating subdirectories in directory /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq
WARNING: File exists /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/Cards 
WARNING: File exists /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/SubProcesses 
INFO: Organizing processes into subprocess groups
INFO: Generating Helas calls for process: g u > t t~ u WEIGHTED<=3 @1
INFO: Processing color information for process: g u > t t~ u @1
Expand All @@ -201,7 +201,7 @@ INFO: Combined process g d~ > t t~ d~ WEIGHTED<=3 @1 with process g u~ > t t~ u~
INFO: Combined process g s~ > t t~ s~ WEIGHTED<=3 @1 with process g u~ > t t~ u~ WEIGHTED<=3 @1
INFO: Creating files in directory P1_gu_ttxu
DEBUG: kwargs[prefix] = 0 [model_handling.py at line 1152] 
DEBUG: process_exporter_cpp =  <PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_OneProcessExporter object at 0x7f38706e0910> [export_v4.py at line 6261] 
DEBUG: process_exporter_cpp =  <PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_OneProcessExporter object at 0x7f98613fbe80> [export_v4.py at line 6261] 
INFO: Creating files in directory .
FileWriter <class 'PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_CPPWriter'> for ././CPPProcess.h
FileWriter <class 'PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_CPPWriter'> for ././CPPProcess.cc
Expand All @@ -216,13 +216,13 @@ INFO: Created files CPPProcess.h and CPPProcess.cc in directory ./.
DEBUG: vector, subproc_group,self.opt['vector_size'] =  32 True 32 [export_v4.py at line 1871] 
INFO: Generating Feynman diagrams for Process: g u > t t~ u WEIGHTED<=3 @1
INFO: Finding symmetric diagrams for subprocess group gu_ttxu
DEBUG: os.getcwd() =  /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/SubProcesses/P1_gu_ttxu [export_v4.py at line 6438] 
DEBUG: os.getcwd() =  /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/SubProcesses/P1_gu_ttxu [export_v4.py at line 6438] 
DEBUG: len(subproc_diagrams_for_config) =  5 [model_handling.py at line 1520] 
DEBUG: iconfig_to_diag =  {1: 1, 2: 2, 3: 3, 4: 4, 5: 5} [model_handling.py at line 1544] 
DEBUG: diag_to_iconfig =  {1: 1, 2: 2, 3: 3, 4: 4, 5: 5} [model_handling.py at line 1545] 
INFO: Creating files in directory P1_gux_ttxux
DEBUG: kwargs[prefix] = 0 [model_handling.py at line 1152] 
DEBUG: process_exporter_cpp =  <PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_OneProcessExporter object at 0x7f38705108e0> [export_v4.py at line 6261] 
DEBUG: process_exporter_cpp =  <PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_OneProcessExporter object at 0x7f9861393fa0> [export_v4.py at line 6261] 
INFO: Creating files in directory .
FileWriter <class 'PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_CPPWriter'> for ././CPPProcess.h
FileWriter <class 'PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_CPPWriter'> for ././CPPProcess.cc
Expand All @@ -237,45 +237,45 @@ INFO: Created files CPPProcess.h and CPPProcess.cc in directory ./.
DEBUG: vector, subproc_group,self.opt['vector_size'] =  32 True 32 [export_v4.py at line 1871] 
INFO: Generating Feynman diagrams for Process: g u~ > t t~ u~ WEIGHTED<=3 @1
INFO: Finding symmetric diagrams for subprocess group gux_ttxux
DEBUG: os.getcwd() =  /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/SubProcesses/P1_gux_ttxux [export_v4.py at line 6438] 
DEBUG: os.getcwd() =  /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/SubProcesses/P1_gux_ttxux [export_v4.py at line 6438] 
DEBUG: len(subproc_diagrams_for_config) =  5 [model_handling.py at line 1520] 
DEBUG: iconfig_to_diag =  {1: 1, 2: 2, 3: 3, 4: 4, 5: 5} [model_handling.py at line 1544] 
DEBUG: diag_to_iconfig =  {1: 1, 2: 2, 3: 3, 4: 4, 5: 5} [model_handling.py at line 1545] 
Generated helas calls for 2 subprocesses (10 diagrams) in 0.031 s
Wrote files for 32 helas calls in 0.249 s
Generated helas calls for 2 subprocesses (10 diagrams) in 0.022 s
Wrote files for 32 helas calls in 0.170 s
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates VVV1 routines
ALOHA: aloha creates 2 routines in 0.146 s
ALOHA: aloha creates 2 routines in 0.097 s
ALOHA: aloha starts to compute helicity amplitudes
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates VVV1 routines
ALOHA: aloha creates 4 routines in 0.134 s
ALOHA: aloha creates 4 routines in 0.090 s
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> FFV1
<class 'aloha.create_aloha.AbstractRoutine'> VVV1
FileWriter <class 'PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_CPPWriter'> for /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/src/./HelAmps_sm.h
INFO: Created file HelAmps_sm.h in directory /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/src/.
FileWriter <class 'PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_CPPWriter'> for /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/src/./HelAmps_sm.h
INFO: Created file HelAmps_sm.h in directory /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/src/.
super_write_set_parameters_onlyfixMajorana (hardcoded=False)
super_write_set_parameters_onlyfixMajorana (hardcoded=True)
FileWriter <class 'PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_CPPWriter'> for /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/src/./Parameters_sm.h
FileWriter <class 'PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_CPPWriter'> for /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/src/./Parameters_sm.cc
FileWriter <class 'PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_CPPWriter'> for /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/src/./Parameters_sm.h
FileWriter <class 'PLUGIN.CUDACPP_OUTPUT.model_handling.PLUGIN_CPPWriter'> for /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/src/./Parameters_sm.cc
INFO: Created files Parameters_sm.h and Parameters_sm.cc in directory
INFO: /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/src/. and /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/src/.
INFO: /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/src/. and /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/src/.
The option zerowidth_tchannel is modified [True] but will not be written in the configuration files.
If you want to make this value the default for future session, you can run 'save options --all'
save configuration file to /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/Cards/me5_configuration.txt
save configuration file to /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/Cards/me5_configuration.txt
INFO: Use Fortran compiler gfortran
INFO: Use c++ compiler g++
INFO: Generate jpeg diagrams
INFO: Generate web pages
DEBUG: cd /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq; patch -p4 -i /data/avalassi/GPU2023/madgraph4gpuX/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/MG5aMC_patches/PROD/patch.common
DEBUG: cd /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq; patch -p4 -i /data/avalassi/GPU2024/madgraph4gpuX/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/MG5aMC_patches/PROD/patch.common
patching file Source/genps.inc
patching file Source/makefile
patching file SubProcesses/makefile
DEBUG: cd /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/SubProcesses/P1_gu_ttxu; patch -p6 -i /data/avalassi/GPU2023/madgraph4gpuX/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/MG5aMC_patches/PROD/patch.P1
DEBUG: cd /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/SubProcesses/P1_gu_ttxu; patch -p6 -i /data/avalassi/GPU2024/madgraph4gpuX/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/MG5aMC_patches/PROD/patch.P1
patching file auto_dsig1.f
Hunk #1 succeeded at 528 (offset 44 lines).
patching file driver.f
Expand All @@ -285,7 +285,7 @@ Hunk #2 succeeded at 162 (offset 19 lines).
Hunk #3 succeeded at 247 (offset 26 lines).
Hunk #4 succeeded at 281 (offset 32 lines).
Hunk #5 succeeded at 326 (offset 32 lines).
DEBUG: cd /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/SubProcesses/P1_gux_ttxux; patch -p6 -i /data/avalassi/GPU2023/madgraph4gpuX/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/MG5aMC_patches/PROD/patch.P1
DEBUG: cd /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/SubProcesses/P1_gux_ttxux; patch -p6 -i /data/avalassi/GPU2024/madgraph4gpuX/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/MG5aMC_patches/PROD/patch.P1
patching file auto_dsig1.f
Hunk #1 succeeded at 528 (offset 44 lines).
patching file driver.f
Expand All @@ -296,16 +296,16 @@ Hunk #3 succeeded at 247 (offset 26 lines).
Hunk #4 succeeded at 281 (offset 32 lines).
Hunk #5 succeeded at 326 (offset 32 lines).
DEBUG: p.returncode =  0 [output.py at line 242] 
Output to directory /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq done.
Output to directory /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq done.
Type "launch" to generate events from this process, or see
/data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/README
/data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/README
Run "open index.html" to see more information about this process.
quit

real 0m2.313s
user 0m1.990s
sys 0m0.293s
Code generation completed in 2 seconds
real 0m1.573s
user 0m1.410s
sys 0m0.163s
Code generation completed in 1 seconds
************************************************************
* *
* W E L C O M E to *
Expand All @@ -326,11 +326,11 @@ Code generation completed in 2 seconds
* Type 'help' for in-line help. *
* *
************************************************************
INFO: load configuration from /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/Cards/me5_configuration.txt
INFO: load configuration from /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/mg5amcnlo/input/mg5_configuration.txt
INFO: load configuration from /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/Cards/me5_configuration.txt
INFO: load configuration from /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/Cards/me5_configuration.txt
INFO: load configuration from /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/mg5amcnlo/input/mg5_configuration.txt
INFO: load configuration from /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/Cards/me5_configuration.txt
Using default text editor "vi". Set another one in ./input/mg5_configuration.txt
Using default eps viewer "evince". Set another one in ./input/mg5_configuration.txt
No valid eps viewer found. Please set in ./input/mg5_configuration.txt
Using default web browser "firefox". Set another one in ./input/mg5_configuration.txt
treatcards run
quit
Expand All @@ -356,11 +356,11 @@ launch in debug mode
* Type 'help' for in-line help. *
* *
************************************************************
INFO: load configuration from /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/Cards/me5_configuration.txt
INFO: load configuration from /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/mg5amcnlo/input/mg5_configuration.txt
INFO: load configuration from /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/Cards/me5_configuration.txt
INFO: load configuration from /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/Cards/me5_configuration.txt
INFO: load configuration from /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/mg5amcnlo/input/mg5_configuration.txt
INFO: load configuration from /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/TMPOUT/CODEGEN_mad_gq_ttq/Cards/me5_configuration.txt
Using default text editor "vi". Set another one in ./input/mg5_configuration.txt
Using default eps viewer "evince". Set another one in ./input/mg5_configuration.txt
No valid eps viewer found. Please set in ./input/mg5_configuration.txt
Using default web browser "firefox". Set another one in ./input/mg5_configuration.txt
treatcards param
quit
Expand Down
4 changes: 2 additions & 2 deletions epochX/cudacpp/gq_ttq.mad/Cards/me5_configuration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
# pineappl = pineappl


#mg5_path = /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/mg5amcnlo
#mg5_path = /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/mg5amcnlo

# MG5 MAIN DIRECTORY
#mg5_path = /data/avalassi/GPU2023/madgraph4gpuX/MG5aMC/mg5amcnlo
#mg5_path = /data/avalassi/GPU2024/madgraph4gpuX/MG5aMC/mg5amcnlo
3 changes: 3 additions & 0 deletions epochX/cudacpp/gq_ttq.mad/Cards/run_card.dat
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,7 @@ systematics = systematics_program ! none, systematics [python], SysCalc [deprece
# SIMD/GPU configuration for the CUDACPP plugin
#************************************************************************
cpp = cudacpp_backend ! CUDACPP backend: fortran, cuda, hip, cpp, cppnone, cppsse4, cppavx2, cpp512y, cpp512z, cppauto
#*** WARNING! Do not change the cudacpp runcard below! Users should normally change only the cudacpp_backend card ***
m = cudacpp_fptype ! CUDACPP floating point precision: f (single), d (double), m (mixed: double for amplitudes, single for colors)
False = cudacpp_bldall ! CUDACPP build all available backends in separate build directories: False, True

3 changes: 3 additions & 0 deletions epochX/cudacpp/gq_ttq.mad/Cards/run_card_default.dat
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,7 @@ systematics = systematics_program ! none, systematics [python], SysCalc [deprece
# SIMD/GPU configuration for the CUDACPP plugin
#************************************************************************
cpp = cudacpp_backend ! CUDACPP backend: fortran, cuda, hip, cpp, cppnone, cppsse4, cppavx2, cpp512y, cpp512z, cppauto
#*** WARNING! Do not change the cudacpp runcard below! Users should normally change only the cudacpp_backend card ***
m = cudacpp_fptype ! CUDACPP floating point precision: f (single), d (double), m (mixed: double for amplitudes, single for colors)
False = cudacpp_bldall ! CUDACPP build all available backends in separate build directories: False, True

29 changes: 17 additions & 12 deletions epochX/cudacpp/gq_ttq.mad/SubProcesses/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ SHELL := /bin/bash

include ../../Source/make_opts

# Export the relevant settings from make_opts to builds using the cudacpp makefile
export FPTYPE

# Determine CUDACPP_BUILDDIR based on the user-defined choices of BACKEND, FPTYPE, HELINL, HRDCOD and USEBUILDDIR (#829)
# Stop with an error if BACKEND=cuda and nvcc is missing or if BACKEND=hip and hipcc is missing
include ../../src/cudacpp_config.mk
Expand Down Expand Up @@ -159,27 +162,29 @@ madevent_fortran_link: $(PROG)_fortran
rm -f $(PROG)
ln -s $(PROG)_fortran $(PROG)

madevent_cuda_link:
$(MAKE) USEGTEST=0 BACKEND=cuda $(CUDACPP_BUILDDIR)/$(PROG)_cuda
madevent_cudacpp_link: all
rm -f $(PROG)
ifeq ($(BACKEND),cuda)
ln -s $(CUDACPP_BUILDDIR)/$(PROG)_cuda $(PROG)
else ifeq ($(BACKEND),hip)
ln -s $(CUDACPP_BUILDDIR)/$(PROG)_hip $(PROG)
else
ln -s $(CUDACPP_BUILDDIR)/$(PROG)_cpp $(PROG)
endif

madevent_cuda_link:
$(MAKE) USEGTEST=0 USEBUILDDIR=1 BACKEND=cuda madevent_cudacpp_link

madevent_hip_link:
$(MAKE) USEGTEST=0 BACKEND=hip $(CUDACPP_BUILDDIR)/$(PROG)_hip
rm -f $(PROG)
ln -s $(CUDACPP_BUILDDIR)/$(PROG)_hip $(PROG)
$(MAKE) USEGTEST=0 USEBUILDDIR=1 BACKEND=hip madevent_cudacpp_link

madevent_cpp_link:
$(MAKE) USEGTEST=0 BACKEND=cppauto $(CUDACPP_BUILDDIR)/$(PROG)_cpp
rm -f $(PROG)
ln -s $(CUDACPP_BUILDDIR)/$(PROG)_cpp $(PROG)
$(MAKE) USEGTEST=0 USEBUILDDIR=1 BACKEND=cppauto madevent_cudacpp_link

override SUPPORTED_AVXS = cppnone cppsse4 cppavx2 cpp512y cpp512z cppauto
madevent_%_link:
@if [ '$(words $(filter $*, $(SUPPORTED_AVXS)))' != '1' ]; then echo "ERROR! Invalid target '$@' (supported madevent_cpp*_link targets are: $(foreach avx,$(SUPPORTED_AVXS),'madevent_cpp$(avx)_link'))"; exit 1; fi
$(MAKE) USEGTEST=0 BACKEND=$* $(CUDACPP_BUILDDIR)/$(PROG)_cpp
rm -f $(PROG)
ln -s $(CUDACPP_BUILDDIR)/$(PROG)_cpp $(PROG)
@if [ '$(words $(filter $*, $(SUPPORTED_AVXS)))' != '1' ]; then echo "ERROR! Invalid target '$@' (supported madevent_cpp*_link targets are: $(foreach avx,$(SUPPORTED_AVXS),'madevent_$(avx)_link'))"; exit 1; fi
$(MAKE) USEGTEST=0 USEBUILDDIR=1 BACKEND=$* madevent_cudacpp_link

# Building $(PROG)_cpp no longer builds $(PROG)_cuda if CUDACPP_BACKENDLIB for cuda exists (this was the case in the past to allow cpp-only builds #503)
$(CUDACPP_BUILDDIR)/$(PROG)_cpp: $(PROCESS) $(DSIG_cudacpp) auto_dsig.o $(LIBS) $(MATRIX) counters.o ompnumthreads.o $(CUDACPP_BUILDDIR)/.cudacpplibs
Expand Down
Loading

0 comments on commit 7e6489f

Please sign in to comment.