Add -O3 flat to HIP.make to fix segmentation fault

This commit is contained in:
Tom Deakin 2020-08-12 14:09:22 +01:00 committed by GitHub
parent da3946a7d5
commit f31181dedb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ HIP_PATH?= /opt/rocm/hip
HIPCC=$(HIP_PATH)/bin/hipcc HIPCC=$(HIP_PATH)/bin/hipcc
hip-stream: main.cpp HIPStream.cpp hip-stream: main.cpp HIPStream.cpp
$(HIPCC) $(CXXFLAGS) -std=c++11 -DHIP $^ $(EXTRA_FLAGS) -o $@ $(HIPCC) $(CXXFLAGS) -O3 -std=c++11 -DHIP $^ $(EXTRA_FLAGS) -o $@
.PHONY: clean .PHONY: clean
clean: clean: