blob: 1f457fa530c3d976869a950e65355fec8108327b (
plain)
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
|
#!/bin/sh
#
# Change the definition of CCL_DEFAULT_DIRECTORY below to refer to
# your OpenMCL installation directory.
# Any definition of CCL_DEFAULT_DIRECTORY already present in the environment
# takes precedence over definitions made below.
if [ -z "$CCL_DEFAULT_DIRECTORY" ]; then
CCL_DEFAULT_DIRECTORY="$1"
fi
# This is shorter (& easier to type), making the invocation below
# a little easier to read.
DD=${CCL_DEFAULT_DIRECTORY}
# If you don't want to guess the name of the OpenMCL kernel on
# every invocation (or if you want to use a kernel with a
# non-default name), you might want to uncomment and change
# the following line:
#OPENMCL_KERNEL=some_name
# Set the CCL_DEFAULT_DIRECTORY environment variable;
# the lisp will use this to setup translations for the CCL: logical host.
if [ -z "$OPENMCL_KERNEL" ]; then
case `uname -s` in
Darwin)
OPENMCL_KERNEL=dppccl
;;
Linux)
OPENMCL_KERNEL=ppccl
;;
*)
echo "Can't determine host OS. Fix this."
exit 1
;;
esac
fi
CCL_DEFAULT_DIRECTORY=${DD} exec ${DD}/${OPENMCL_KERNEL} "$@"
|