This repository has been archived by the owner on Dec 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make everything consistent. Make it work on hipcc not installed in /opt, i.e. on Debian with Debian packages. Properly use condition, #!, and other factors. Remove code that does nothing. Add .gitignores as needed.
- Loading branch information
Showing
66 changed files
with
357 additions
and
778 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
BinomialOption |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
HIP_PATH?= $(wildcard /opt/rocm) | ||
HIPCC=$(HIP_PATH)/bin/hipcc | ||
|
||
SOURCES = BinomialOption.cpp | ||
OBJECTS = $(SOURCES:.cpp=.o) | ||
|
||
EXECUTABLE=./BinomialOption | ||
BinomialOption: BinomialOption.cpp ../include/HIPUtil.hpp ../include/SDKUtil.hpp | ||
$(HIPCC) -o $@ BinomialOption.cpp | ||
|
||
.PHONY: test | ||
test: BinomialOption | ||
$(shell pwd)/BinomialOption | ||
|
||
|
||
all: $(EXECUTABLE) test | ||
|
||
CXXFLAGS =-g | ||
CXX=$(HIPCC) | ||
|
||
|
||
$(EXECUTABLE): $(OBJECTS) | ||
$(HIPCC) $(OBJECTS) -o $@ | ||
|
||
|
||
test: $(EXECUTABLE) | ||
$(EXECUTABLE) | ||
|
||
|
||
.PHONY: clean | ||
clean: | ||
rm -f $(EXECUTABLE) | ||
rm -f $(OBJECTS) | ||
rm -f $(HIP_PATH)/src/*.o | ||
rm -vf BinomialOption *.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
BitonicSort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
HIP_PATH?= $(wildcard /opt/rocm) | ||
HIPCC=$(HIP_PATH)/bin/hipcc | ||
|
||
SOURCES = BitonicSort.cpp | ||
OBJECTS = $(SOURCES:.cpp=.o) | ||
|
||
EXECUTABLE=./BitonicSort | ||
BitonicSort: BitonicSort.cpp ../include/HIPUtil.hpp ../include/SDKUtil.hpp | ||
$(HIPCC) -o $@ BitonicSort.cpp | ||
|
||
.PHONY: test | ||
test: BitonicSort | ||
$(shell pwd)/BitonicSort | ||
|
||
|
||
all: $(EXECUTABLE) test | ||
|
||
CXXFLAGS =-g | ||
CXX=$(HIPCC) | ||
|
||
|
||
$(EXECUTABLE): $(OBJECTS) | ||
$(HIPCC) $(OBJECTS) -o $@ | ||
|
||
|
||
test: $(EXECUTABLE) | ||
$(EXECUTABLE) | ||
|
||
|
||
.PHONY: clean | ||
clean: | ||
rm -f $(EXECUTABLE) | ||
rm -f $(OBJECTS) | ||
rm -f $(HIP_PATH)/src/*.o | ||
rm -vf BitonicSort *.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FastWalshTransform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
HIP_PATH?= $(wildcard /opt/rocm) | ||
HIPCC=$(HIP_PATH)/bin/hipcc | ||
|
||
SOURCES = FastWalshTransform.cpp | ||
OBJECTS = $(SOURCES:.cpp=.o) | ||
|
||
EXECUTABLE=./FastWalshTransform | ||
FastWalshTransform: FastWalshTransform.cpp ../include/HIPUtil.hpp ../include/SDKUtil.hpp | ||
$(HIPCC) -o $@ FastWalshTransform.cpp | ||
|
||
.PHONY: test | ||
test: FastWalshTransform | ||
$(shell pwd)/FastWalshTransform | ||
|
||
|
||
all: $(EXECUTABLE) test | ||
|
||
CXXFLAGS =-g | ||
CXX=$(HIPCC) | ||
|
||
|
||
$(EXECUTABLE): $(OBJECTS) | ||
$(HIPCC) $(OBJECTS) -o $@ | ||
|
||
|
||
test: $(EXECUTABLE) | ||
$(EXECUTABLE) | ||
|
||
|
||
.PHONY: clean | ||
clean: | ||
rm -f $(EXECUTABLE) | ||
rm -f $(OBJECTS) | ||
rm -f $(HIP_PATH)/src/*.o | ||
rm -vf FastWalshTransform *.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FloydWarshall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
HIP_PATH?= $(wildcard /opt/rocm) | ||
HIPCC=$(HIP_PATH)/bin/hipcc | ||
|
||
SOURCES = FloydWarshall.cpp | ||
OBJECTS = $(SOURCES:.cpp=.o) | ||
|
||
EXECUTABLE=./FloydWarshall | ||
FloydWarshall: FloydWarshall.cpp ../include/HIPUtil.hpp ../include/SDKUtil.hpp | ||
$(HIPCC) -o $@ FloydWarshall.cpp | ||
|
||
.PHONY: test | ||
test: FloydWarshall | ||
$(shell pwd)/FloydWarshall | ||
|
||
|
||
all: $(EXECUTABLE) test | ||
|
||
CXXFLAGS =-g | ||
CXX=$(HIPCC) | ||
|
||
|
||
$(EXECUTABLE): $(OBJECTS) | ||
$(HIPCC) $(OBJECTS) -o $@ | ||
|
||
|
||
test: $(EXECUTABLE) | ||
$(EXECUTABLE) | ||
|
||
|
||
.PHONY: clean | ||
clean: | ||
rm -f $(EXECUTABLE) | ||
rm -f $(OBJECTS) | ||
rm -f $(HIP_PATH)/src/*.o | ||
rm -vf FloydWarshall *.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
HelloWorld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
HIP_PATH?= $(wildcard /opt/rocm) | ||
HIPCC=$(HIP_PATH)/bin/hipcc | ||
|
||
SOURCES = HelloWorld.cpp | ||
OBJECTS = $(SOURCES:.cpp=.o) | ||
|
||
EXECUTABLE=./HelloWorld | ||
HelloWorld: HelloWorld.cpp | ||
$(HIPCC) -o $@ HelloWorld.cpp | ||
|
||
.PHONY: test | ||
test: HelloWorld | ||
$(shell pwd)/HelloWorld | ||
|
||
|
||
all: $(EXECUTABLE) test | ||
|
||
CXXFLAGS =-g | ||
CXX=$(HIPCC) | ||
|
||
|
||
$(EXECUTABLE): $(OBJECTS) | ||
$(HIPCC) $(OBJECTS) -o $@ | ||
|
||
|
||
test: $(EXECUTABLE) | ||
$(EXECUTABLE) | ||
|
||
|
||
.PHONY: clean | ||
clean: | ||
rm -f $(EXECUTABLE) | ||
rm -f $(OBJECTS) | ||
rm -f $(HIP_PATH)/src/*.o | ||
rm -vf HelloWorld *.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Histogram |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
HIP_PATH?= $(wildcard /opt/rocm) | ||
HIPCC=$(HIP_PATH)/bin/hipcc | ||
|
||
SOURCES = Histogram.cpp | ||
OBJECTS = $(SOURCES:.cpp=.o) | ||
|
||
EXECUTABLE=./Histogram | ||
Histogram: Histogram.cpp Histogram.hpp ../include/HIPUtil.hpp ../include/SDKUtil.hpp | ||
$(HIPCC) -o $@ Histogram.cpp | ||
|
||
.PHONY: test | ||
test: Histogram | ||
$(shell pwd)/Histogram | ||
|
||
|
||
all: $(EXECUTABLE) test | ||
|
||
CXXFLAGS =-g | ||
CXX=$(HIPCC) | ||
|
||
|
||
$(EXECUTABLE): $(OBJECTS) | ||
$(HIPCC) $(OBJECTS) -o $@ | ||
|
||
|
||
test: $(EXECUTABLE) | ||
$(EXECUTABLE) | ||
|
||
|
||
.PHONY: clean | ||
clean: | ||
rm -f $(EXECUTABLE) | ||
rm -f $(OBJECTS) | ||
rm -f $(HIP_PATH)src/*.o | ||
rm -vf Histogram *.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
MatrixMultiplication |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
HIP_PATH?= $(wildcard /opt/rocm) | ||
HIPCC=$(HIP_PATH)/bin/hipcc | ||
|
||
SOURCES = MatrixMultiplication.cpp | ||
OBJECTS = $(SOURCES:.cpp=.o) | ||
|
||
EXECUTABLE=./MatrixMultiplication | ||
MatrixMultiplication: MatrixMultiplication.cpp ../include/HIPUtil.hpp ../include/SDKUtil.hpp | ||
$(HIPCC) -o $@ MatrixMultiplication.cpp | ||
|
||
.PHONY: test | ||
test: MatrixMultiplication | ||
$(shell pwd)/MatrixMultiplication | ||
|
||
|
||
all: $(EXECUTABLE) test | ||
|
||
CXXFLAGS =-g | ||
CXX=$(HIPCC) | ||
|
||
|
||
$(EXECUTABLE): $(OBJECTS) | ||
$(HIPCC) $(OBJECTS) -o $@ | ||
|
||
|
||
test: $(EXECUTABLE) | ||
$(EXECUTABLE) | ||
|
||
|
||
.PHONY: clean | ||
clean: | ||
rm -f $(EXECUTABLE) | ||
rm -f $(OBJECTS) | ||
rm -f $(HIP_PATH)/src/*.o | ||
rm -vf MatrixMultiplication *.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PrefixSum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
HIP_PATH?= $(wildcard /opt/rocm) | ||
HIPCC=$(HIP_PATH)/bin/hipcc | ||
|
||
SOURCES = PrefixSum.cpp | ||
OBJECTS = $(SOURCES:.cpp=.o) | ||
|
||
EXECUTABLE=./PrefixSum | ||
PrefixSum: PrefixSum.cpp ../include/HIPUtil.hpp ../include/SDKUtil.hpp | ||
$(HIPCC) -o $@ PrefixSum.cpp | ||
|
||
.PHONY: test | ||
test: PrefixSum | ||
$(shell pwd)/PrefixSum | ||
|
||
|
||
all: $(EXECUTABLE) test | ||
|
||
CXXFLAGS =-g | ||
CXX=$(HIPCC) | ||
|
||
|
||
$(EXECUTABLE): $(OBJECTS) | ||
$(HIPCC) $(OBJECTS) -o $@ | ||
|
||
|
||
test: $(EXECUTABLE) | ||
$(EXECUTABLE) | ||
|
||
|
||
.PHONY: clean | ||
clean: | ||
rm -f $(EXECUTABLE) | ||
rm -f $(OBJECTS) | ||
rm -f $(HIP_PATH)/src/*.o | ||
rm -vf PrefixSum *.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
RecursiveGaussian |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
HIP_PATH?= $(wildcard /opt/rocm) | ||
HIPCC=$(HIP_PATH)/bin/hipcc | ||
|
||
SOURCES = RecursiveGaussian.cpp | ||
OBJECTS = $(SOURCES:.cpp=.o) | ||
|
||
EXECUTABLE=./RecursiveGaussian | ||
RecursiveGaussian: RecursiveGaussian.cpp RecursiveGaussian.hpp ../include/HIPUtil.hpp ../include/SDKUtil.hpp ../include/SDKBitMap.hpp | ||
$(HIPCC) -o $@ RecursiveGaussian.cpp | ||
|
||
.PHONY: test | ||
test: RecursiveGaussian | ||
$(shell pwd)/RecursiveGaussian | ||
|
||
|
||
all: $(EXECUTABLE) test | ||
|
||
CXXFLAGS =-g | ||
CXX=$(HIPCC) | ||
|
||
|
||
$(EXECUTABLE): $(OBJECTS) | ||
$(HIPCC) $(OBJECTS) -o $@ | ||
|
||
|
||
test: $(EXECUTABLE) | ||
$(EXECUTABLE) | ||
|
||
|
||
.PHONY: clean | ||
clean: | ||
rm -f $(EXECUTABLE) | ||
rm -f $(OBJECTS) | ||
rm -f $(HIP_PATH)/src/*.o | ||
rm -vf RecursiveGaussian *.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SimpleConvolution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
HIP_PATH?= $(wildcard /opt/rocm) | ||
HIPCC=$(HIP_PATH)/bin/hipcc | ||
|
||
SOURCES = SimpleConvolution.cpp | ||
OBJECTS = $(SOURCES:.cpp=.o) | ||
|
||
EXECUTABLE=./SimpleConvolution | ||
SimpleConvolution: SimpleConvolution.cpp SimpleConvolution.hpp FilterCoeff.h ../include/HIPUtil.hpp ../include/SDKUtil.hpp | ||
$(HIPCC) -o $@ SimpleConvolution.cpp | ||
|
||
.PHONY: test | ||
test: SimpleConvolution | ||
$(shell pwd)/SimpleConvolution | ||
|
||
|
||
all: $(EXECUTABLE) test | ||
|
||
CXXFLAGS =-g | ||
CXX=$(HIPCC) | ||
|
||
|
||
$(EXECUTABLE): $(OBJECTS) | ||
$(HIPCC) $(OBJECTS) -o $@ | ||
|
||
|
||
test: $(EXECUTABLE) | ||
$(EXECUTABLE) | ||
|
||
|
||
.PHONY: clean | ||
clean: | ||
rm -f $(EXECUTABLE) | ||
rm -f $(OBJECTS) | ||
rm -f $(HIP_PATH)/src/*.o | ||
rm -vf SimpleConvolution *.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dct |
Oops, something went wrong.