Skip to content

Commit

Permalink
[amd] in gq_ttq.mad and CODEGEN, work around the memory access crash m…
Browse files Browse the repository at this point in the history
…adgraph5#806 for HIPCC by disabling hipcc optimizations (use -O0 instead of -O3)

The test now succeeds!
./check_hip.exe  -p 1 8 1
  • Loading branch information
valassi committed Sep 19, 2024
1 parent 29fb00b commit 44a6b1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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 = -O0 # work around "Memory access fault" in gq_ttq for HIP #806: disable hipcc optimizations
GPUFLAGS = $(foreach opt, $(OPTFLAGS), $(XCOMPILERFLAG) $(opt))

# DEBUG FLAGS (for #806: see https://hackmd.io/@gmarkoma/lumi_finland)
Expand Down
1 change: 1 addition & 0 deletions epochX/cudacpp/gq_ttq.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 = -O0 # work around "Memory access fault" in gq_ttq for HIP #806: disable hipcc optimizations
GPUFLAGS = $(foreach opt, $(OPTFLAGS), $(XCOMPILERFLAG) $(opt))

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

0 comments on commit 44a6b1d

Please sign in to comment.