-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·46 lines (34 loc) · 1.09 KB
/
Makefile
File metadata and controls
executable file
·46 lines (34 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# . /data001/heterogene_mw/spack/share/spack/setup-env.sh -> ~/.bashrc
# ~/.bashrc
# spack load cuda@12.3
.PHONY: clean run cgen build
run_pc:
@./.runJob.sh pc
run_sc:
@./.runJob.sh sc
pgen:
@mkdir -p ./install
module load cuda && \
module load lapack && \
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=./install -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON && \
cmake --build build -DCMAKE_INSTALL_PREFIX=./install -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON && \
cmake --install build
sgen:
@mkdir -p ./install
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=./install -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON && \
cmake --build build -DCMAKE_INSTALL_PREFIX=./install -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON && \
cmake --install build
build:
@mkdir -p ./install
module load cuda && \
module load lapack && \
cmake --build build -DCMAKE_INSTALL_PREFIX=./install -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON && \
cmake --install build
this:
@mkdir -p ./install
module load cuda && \
module load lapack && \
cmake --install build
clean:
rm -rf *.qsub_out
cmake --build build --target clean