first commit

This commit is contained in:
2026-01-18 20:37:50 +08:00
commit fff9f18287
123 changed files with 1385491 additions and 0 deletions

24
DASP/Makefile Normal file
View File

@@ -0,0 +1,24 @@
#compilers
CC=/usr/local/cuda-12.0/bin/nvcc
NVCC_FLAGS = -O3 -ccbin /usr/local/gcc-12.2/bin -m64 -gencode arch=compute_80,code=sm_80
# #ENVIRONMENT_PARAMETERS
# CUDA_INSTALL_PATH = /usr/local/cuda-12.0
CUDA_LIBS = -lcusparse -lcublas
LIBS = -lineinfo $(CUDA_LIBS)
#options
OPTIONS = -Xcompiler -fopenmp-simd
double:
$(CC) $(NVCC_FLAGS) src/main_f64.cu -o spmv_double -D f64 $(OPTIONS) $(LIBS)
half:
$(CC) $(NVCC_FLAGS) src/main_f16.cu -o spmv_half $(OPTIONS) $(LIBS)
clean:
rm -rf spmv_double
rm -rf spmv_half
rm data/*.csv