mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 13:27:29 -04:00
20 lines
539 B
Makefile
20 lines
539 B
Makefile
ROOT_DIR := $(realpath ../../..)
|
|
include $(ROOT_DIR)/config.mk
|
|
|
|
PROJECT := spmv
|
|
|
|
SRC_DIR := $(VORTEX_HOME)/tests/opencl/$(PROJECT)
|
|
|
|
SRCS := $(SRC_DIR)/main.cc $(SRC_DIR)/parboil_opencl.c $(SRC_DIR)/args.c $(SRC_DIR)/gpu_info.c $(SRC_DIR)/file.c $(SRC_DIR)/convert_dataset.c $(SRC_DIR)/mmio.c $(SRC_DIR)/ocl.c
|
|
|
|
CXXFLAGS += -I$(SRC_DIR)
|
|
|
|
kernel.cl: $(SRC_DIR)/kernel.cl
|
|
cp $< $@
|
|
|
|
KERNEL_SRCS := kernel.cl
|
|
|
|
# Usage: -i matrix_file,vector_file [-o output_file]
|
|
OPTS ?= -i $(SRC_DIR)/1138_bus.mtx,$(SRC_DIR)/1138_bus.vec
|
|
|
|
include ../common.mk
|