Skip to content
Draft
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
16 changes: 16 additions & 0 deletions benchmarks/hecbench/data/bezier-surface/control.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-0.508359,-0.280288,-0.160131
-0.199345,-0.515802,-0.0100263
0.133988,-0.515802,-0.0100263
0.418629,-0.382526,-0.407321
-0.532679,-0.182468,-0.0100263
0.0505979,-0.195094,1.08832
0.383931,-0.195094,1.08832
0.467321,-0.182468,-0.0100263
-0.532679,0.150865,-0.0100263
0.0505979,0.13824,1.08832
0.383931,0.13824,1.08832
0.467321,0.150865,-0.0100263
-0.483195,0.349859,-0.0568787
-0.199345,0.484198,-0.0100263
0.133988,0.484198,-0.0100263
0.30311,0.389596,-0.0811675
57 changes: 57 additions & 0 deletions benchmarks/hecbench/dsl/3mm/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#===============================================================================
# User Options
#===============================================================================

# Compiler can be set below, or via environment variable
CC = ${PROTEUS_CC}
OPTIMIZE = yes
DEBUG = no
PROTEUS_PATH ?= /path/to/proteus/install

#===============================================================================
# Program name & source code list
#===============================================================================

SUFFIX = -proteus

program = 3mm$(SUFFIX).x

source = main.cpp
obj = $(source:.cpp=$(SUFFIX).o)

#===============================================================================
# Sets Flags
#===============================================================================

OFFLOAD_ARCH ?= gfx942
HIPFLAGS := --offload-arch=${OFFLOAD_ARCH}
CFLAGS := $(EXTRA_CFLAGS) -std=c++17 -Wall -DPROTEUS_ENABLE_HIP -I${PROTEUS_PATH}/include -I${ROCM_PATH}/llvm/include/ -I${ROCM_PATH}/include $(shell ${ROCM_PATH}/llvm/bin/llvm-config --cxxflags) -fexceptions $(HIPFLAGS)

LDFLAGS = -L${ROCM_PATH}/lib -L${ROCM_PATH}/llvm/lib $(shell ${ROCM_PATH}/llvm/bin/llvm-config --libs) $(shell ${ROCM_PATH}/llvm/bin/llvm-config --system-libs) -llldCommon -llldELF -lamdhip64 -lhiprtc -lhiprtc-builtins -Wl,-rpath,${ROCM_PATH}/lib

ifeq ($(DEBUG),yes)
CFLAGS += -g
LDFLAGS += -g
endif

ifeq ($(OPTIMIZE),yes)
CFLAGS += -O3
endif

LDFLAGS += -Wl,-rpath,${PROTEUS_PATH}/lib64 -L${PROTEUS_PATH}/lib64/ -lproteus

#===============================================================================
# Targets to Build
#===============================================================================

$(program): $(obj) Makefile
$(CC) $(CFLAGS) $(obj) -o $@ $(LDFLAGS)

%$(SUFFIX).o: %.cpp Makefile
$(CC) $(CFLAGS) -x hip -c $< -o $@

clean:
rm -rf *.x *.o .proteus

run: $(program)
./$(program) --no-verify --N 8192 --kernel jit_regtiled
Loading