Преглед на файлове

Add instruction to make/build inside CSAL docker image.

master
Christos Choutouridis преди 4 години
родител
ревизия
70917bed3d
променени са 1 файла, в които са добавени 50 реда и са изтрити 0 реда
  1. +50
    -0
      Makefile

+ 50
- 0
Makefile Целия файл

@@ -227,7 +227,57 @@ v4_pthreads: TARGET := tcount_pthv4
v4_pthreads: $(BUILD_DIR)/$(TARGET)
cp $(BUILD_DIR)/$(TARGET) out/$(TARGET)

#
# ========= Inside CSAL Image build rules ===========
#
# 1) first jump into image (make sure you are in the directory where Makefile is):
# > docker run -it -v ${PWD}:/usr/src/exercise_1 -w /usr/src/exercise_1/ hpcimage
# 2) Clean binaries first **important**
# > make clean
# 3) for v4 cilk for example:
# > make csal_v4_cilk
# 4) run executables from `out/`

csal_v3: CFLAGS := $(REL_CFLAGS) -DCODE_VERSION=3
csal_v3: TARGET := tcount_v3
csal_v3: $(BUILD_DIR)/$(TARGET)
cp $(BUILD_DIR)/$(TARGET) out/$(TARGET)

csal_v3_cilk: CXX := /usr/local/OpenCilk-9.0.1-Linux/bin/clang++
csal_v3_cilk: CFLAGS := $(REL_CFLAGS) -fcilkplus -DCODE_VERSION=3 -DCILK
csal_v3_cilk: LDFLAGS += -fcilkplus
csal_v3_cilk: TARGET := tcount_cilkv3
csal_v3_cilk: $(BUILD_DIR)/$(TARGET)
cp $(BUILD_DIR)/$(TARGET) out/$(TARGET)

csal_v3_omp: CFLAGS := $(REL_CFLAGS) -fopenmp -DCODE_VERSION=3 -DOMP
csal_v3_omp: LDFLAGS += -fopenmp
csal_v3_omp: TARGET := tcount_ompv3
csal_v3_omp: $(BUILD_DIR)/$(TARGET)
cp $(BUILD_DIR)/$(TARGET) out/$(TARGET)

csal_v4: CFLAGS := $(REL_CFLAGS) -DCODE_VERSION=4
csal_v4: TARGET := tcount_v4
csal_v4: $(BUILD_DIR)/$(TARGET)
cp $(BUILD_DIR)/$(TARGET) out/$(TARGET)

csal_v4_cilk: CXX := /usr/local/OpenCilk-9.0.1-Linux/bin/clang++
csal_v4_cilk: CFLAGS := $(REL_CFLAGS) -fcilkplus -DCODE_VERSION=V4 -DCILK
csal_v4_cilk: LDFLAGS += -fcilkplus
csal_v4_cilk: TARGET := tcount_cilkv4
csal_v4_cilk: $(BUILD_DIR)/$(TARGET)
cp $(BUILD_DIR)/$(TARGET) out/$(TARGET)

csal_v4_omp: CFLAGS := $(REL_CFLAGS) -fopenmp -DCODE_VERSION=4 -DOMP
csal_v4_omp: LDFLAGS += -fopenmp
csal_v4_omp: TARGET := tcount_ompv4
csal_v4_omp: $(BUILD_DIR)/$(TARGET)
cp $(BUILD_DIR)/$(TARGET) out/$(TARGET)

csal_v4_pthreads: CFLAGS := $(REL_CFLAGS) -DCODE_VERSION=4 -DTHREADS
csal_v4_pthreads: TARGET := tcount_pthv4
csal_v4_pthreads: $(BUILD_DIR)/$(TARGET)
cp $(BUILD_DIR)/$(TARGET) out/$(TARGET)
#
# ================ hpc build rules =================
#


Loading…
Отказ
Запис