This commit is contained in:
2025-03-15 02:32:15 +05:00
parent 36abc6a655
commit 978db38a18
5 changed files with 34 additions and 32 deletions

View File

@@ -1,11 +1,18 @@
NVCC := nvcc
NVCC_FLAGS := -rdc=true -O3 -Xptxas -O3 \
-gencode arch=compute_75,code=sm_75 \
--default-stream per-thread \
-Wno-deprecated-gpu-targets \
--expt-relaxed-constexpr \
-I../libs/ \
-std=c++20
NVCC_FLAGS := -rdc=true -O3 -Xptxas -O3 \
-use_fast_math -ftz=true -prec-div=false -prec-sqrt=false \
-gencode arch=compute_75,code=sm_75 \
--default-stream per-thread \
-Wno-deprecated-gpu-targets \
--expt-relaxed-constexpr \
-I../libs/ \
-std=c++17
BUILD ?= RELEASE
ifeq ($(BUILD),DEBUG)
BUILD_DEFINES := -DDEBUG
else
BUILD_DEFINES := -DRELEASE
endif
MAIN_SOURCE := ../sources/main.cu
LIBS_DIR := ../libs/
BUILD_DIR := ../build
@@ -21,4 +28,4 @@ $(TARGET): $(MAIN_SOURCE) $(LIBS_OBJECTS)
$(BUILD_DIR)/%.o: $(LIBS_DIR)%.cu | $(BUILD_DIR)
$(NVCC) $(NVCC_FLAGS) -c $< -o $@
clean:
@rm -f $(BUILD_DIR)/*.o $(TARGET)
@rm -f $(BUILD_DIR)/*.o $(TARGET)