Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101974206
Makefile
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Feb 15, 18:23
Size
710 B
Mime Type
text/x-makefile
Expires
Mon, Feb 17, 18:23 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24254758
Attached To
R1448 Lenstool-HPC
Makefile
View Options
#
# author: gilles.fourestey@epfl.ch
#
SHELL:=/bin/bash
arch = intel
prec = double
all: precision compile
#cd ../utils/
#make
utils:
make -C ../utils
sh ../utils/gpu.sh > ./gpusm.inc
precision:
echo "PRECISION := -D_double" > precision.inc
if [ "$(prec)" == "single" ]; then \
echo "PRECISION := -D_single" > precision.inc; \
fi
#fi
compile:
@make -f Makefile.$(arch)
if which nvcc > /dev/null; then \
make -C ../utils; \
sh ../utils/gpu.sh > ./gpusm.inc; \
echo "nvcc detected, compiling the GPU lib"; \
make -f Makefile.GPU.$(arch); \
fi
clean:
make -C ../utils clean
make -f Makefile.$(arch) clean
#make --silent -f Makefile.GPU.$(arch);
Event Timeline
Log In to Comment