Updated Dockerfiles
This commit is contained in:
@ -1,15 +1,15 @@
|
||||
FROM nvidia/cuda:12.4.1-devel-ubi9 as builder
|
||||
FROM nvidia/cuda:12.5.0-devel-ubi9 as builder
|
||||
|
||||
WORKDIR /home/ViolaJones/cpp
|
||||
|
||||
COPY *.cu *.cpp *.hpp Makefile ./
|
||||
RUN make -j "$(nproc)"
|
||||
|
||||
FROM nvidia/cuda:12.4.1-base-ubi9
|
||||
FROM nvidia/cuda:12.5.0-base-ubi9
|
||||
|
||||
WORKDIR /home/ViolaJones/cpp
|
||||
|
||||
RUN dnf install -y make-1:4.3-7.el9 && dnf clean all
|
||||
RUN dnf install -y make-1:4.3-8.el9 && dnf clean all
|
||||
COPY --from=builder /home/ViolaJones/cpp/bin ./bin
|
||||
COPY --from=builder /home/ViolaJones/cpp/Makefile .
|
||||
|
||||
|
@ -8,7 +8,7 @@ DATA_PATH := ../data
|
||||
#CFLAGS := -O0 -g -G -pg -Xptxas=-w -Xcompiler -O0,-rdynamic,-g
|
||||
CFLAGS := -dlto -O2 -Xcompiler -O2
|
||||
#CFLAGS := -dlto -O2 -g -Xcompiler -O2,-g,-ggdb
|
||||
CFLAGS := $(CFLAGS) -MMD -MP -Werror=all-warnings -Xcompiler -Wall,-Werror,-Werror=implicit-fallthrough=0,-Wextra
|
||||
CFLAGS := $(CFLAGS) -MMD -MP -Werror=all-warnings -Xcompiler -Wall,-Werror,-Wextra
|
||||
EXEC := $(OBJ_DIR)/ViolaJones
|
||||
DATA := $(DATA_PATH)/X_train.bin $(DATA_PATH)/X_test.bin $(DATA_PATH)/y_train.bin $(DATA_PATH)/y_test.bin
|
||||
SRC := $(shell find $(SRC_DIR) -name '*.cpp' -o -name '*.cu')
|
||||
@ -88,9 +88,7 @@ log: $(DATA) reset
|
||||
.PHONY: reset
|
||||
reset:
|
||||
@echo 'Deleting generated states and models'
|
||||
@rm -frv $(OUT_DIR)/* $(MODELS_DIR)/*
|
||||
#@ln -sv /mnt/pierre_stuffs/ViolaJones/cpp/models .
|
||||
#@ln -sv /mnt/pierre_stuffs/ViolaJones/cpp/out .
|
||||
@rm -frv $(OUT_DIR) $(MODELS_DIR)
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
|
Reference in New Issue
Block a user