Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ else ifeq ($(BACKEND),hip)
GPUSUFFIX = hip

# Optimization flags
override OPTFLAGS = -O2 # work around "Memory access fault" in gq_ttq for HIP #806: disable hipcc -O3 optimizations
GPUFLAGS = $(foreach opt, $(OPTFLAGS), $(XCOMPILERFLAG) $(opt))

# DEBUG FLAGS (for #806: see https://hackmd.io/@gmarkoma/lumi_finland)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,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 @@ -252,7 +264,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 @@ -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
1 change: 1 addition & 0 deletions epochX/cudacpp/ee_mumu.mad/SubProcesses/cudacpp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ else ifeq ($(BACKEND),hip)
GPUSUFFIX = hip

# Optimization flags
override OPTFLAGS = -O2 # work around "Memory access fault" in gq_ttq for HIP #806: disable hipcc -O3 optimizations
GPUFLAGS = $(foreach opt, $(OPTFLAGS), $(XCOMPILERFLAG) $(opt))

# DEBUG FLAGS (for #806: see https://hackmd.io/@gmarkoma/lumi_finland)
Expand Down
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
1 change: 1 addition & 0 deletions epochX/cudacpp/ee_mumu.sa/SubProcesses/cudacpp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ else ifeq ($(BACKEND),hip)
GPUSUFFIX = hip

# Optimization flags
override OPTFLAGS = -O2 # work around "Memory access fault" in gq_ttq for HIP #806: disable hipcc -O3 optimizations
GPUFLAGS = $(foreach opt, $(OPTFLAGS), $(XCOMPILERFLAG) $(opt))

# DEBUG FLAGS (for #806: see https://hackmd.io/@gmarkoma/lumi_finland)
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
1 change: 1 addition & 0 deletions epochX/cudacpp/gg_tt.mad/SubProcesses/cudacpp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ else ifeq ($(BACKEND),hip)
GPUSUFFIX = hip

# Optimization flags
override OPTFLAGS = -O2 # work around "Memory access fault" in gq_ttq for HIP #806: disable hipcc -O3 optimizations
GPUFLAGS = $(foreach opt, $(OPTFLAGS), $(XCOMPILERFLAG) $(opt))

# DEBUG FLAGS (for #806: see https://hackmd.io/@gmarkoma/lumi_finland)
Expand Down
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
1 change: 1 addition & 0 deletions epochX/cudacpp/gg_tt.sa/SubProcesses/cudacpp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ else ifeq ($(BACKEND),hip)
GPUSUFFIX = hip

# Optimization flags
override OPTFLAGS = -O2 # work around "Memory access fault" in gq_ttq for HIP #806: disable hipcc -O3 optimizations
GPUFLAGS = $(foreach opt, $(OPTFLAGS), $(XCOMPILERFLAG) $(opt))

# DEBUG FLAGS (for #806: see https://hackmd.io/@gmarkoma/lumi_finland)
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
1 change: 1 addition & 0 deletions epochX/cudacpp/gg_tt01g.mad/SubProcesses/cudacpp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ else ifeq ($(BACKEND),hip)
GPUSUFFIX = hip

# Optimization flags
override OPTFLAGS = -O2 # work around "Memory access fault" in gq_ttq for HIP #806: disable hipcc -O3 optimizations
GPUFLAGS = $(foreach opt, $(OPTFLAGS), $(XCOMPILERFLAG) $(opt))

# DEBUG FLAGS (for #806: see https://hackmd.io/@gmarkoma/lumi_finland)
Expand Down
14 changes: 13 additions & 1 deletion epochX/cudacpp/gg_ttg.mad/SubProcesses/P1_gg_ttxg/CPPProcess.cc
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
1 change: 1 addition & 0 deletions epochX/cudacpp/gg_ttg.mad/SubProcesses/cudacpp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ else ifeq ($(BACKEND),hip)
GPUSUFFIX = hip

# Optimization flags
override OPTFLAGS = -O2 # work around "Memory access fault" in gq_ttq for HIP #806: disable hipcc -O3 optimizations
GPUFLAGS = $(foreach opt, $(OPTFLAGS), $(XCOMPILERFLAG) $(opt))

# DEBUG FLAGS (for #806: see https://hackmd.io/@gmarkoma/lumi_finland)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,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 @@ -914,7 +926,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
1 change: 1 addition & 0 deletions epochX/cudacpp/gg_ttg.sa/SubProcesses/cudacpp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ else ifeq ($(BACKEND),hip)
GPUSUFFIX = hip

# Optimization flags
override OPTFLAGS = -O2 # work around "Memory access fault" in gq_ttq for HIP #806: disable hipcc -O3 optimizations
GPUFLAGS = $(foreach opt, $(OPTFLAGS), $(XCOMPILERFLAG) $(opt))

# DEBUG FLAGS (for #806: see https://hackmd.io/@gmarkoma/lumi_finland)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2805,6 +2805,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 @@ -2866,7 +2878,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
1 change: 1 addition & 0 deletions epochX/cudacpp/gg_ttgg.mad/SubProcesses/cudacpp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ else ifeq ($(BACKEND),hip)
GPUSUFFIX = hip

# Optimization flags
override OPTFLAGS = -O2 # work around "Memory access fault" in gq_ttq for HIP #806: disable hipcc -O3 optimizations
GPUFLAGS = $(foreach opt, $(OPTFLAGS), $(XCOMPILERFLAG) $(opt))

# DEBUG FLAGS (for #806: see https://hackmd.io/@gmarkoma/lumi_finland)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2862,6 +2862,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 @@ -2923,7 +2935,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
1 change: 1 addition & 0 deletions epochX/cudacpp/gg_ttgg.sa/SubProcesses/cudacpp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ else ifeq ($(BACKEND),hip)
GPUSUFFIX = hip

# Optimization flags
override OPTFLAGS = -O2 # work around "Memory access fault" in gq_ttq for HIP #806: disable hipcc -O3 optimizations
GPUFLAGS = $(foreach opt, $(OPTFLAGS), $(XCOMPILERFLAG) $(opt))

# DEBUG FLAGS (for #806: see https://hackmd.io/@gmarkoma/lumi_finland)
Expand Down
Loading