forked from plauth/dopencl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL_Linux.txt
112 lines (83 loc) · 3.71 KB
/
INSTALL_Linux.txt
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
Installing dOpenCL
==================
(last update: 2014-12-22, Philipp Kegel)
1. Requirements
2. Building dOpenCL from source
3. Installing dOpenCL
4. Known issues
------------
Requirements
------------
* C++11-enabled compiler
has been tested successfully with g++ 4.6 and g++ 4.7
* OpenCL 1.1+
only has to be installed on the dOpenCL compute nodes.
The OpenCL headers and C++ binding have to be installed in the system's
default include directories
* Boost (>=1.41.0)
required libraries: Boost.Asio, Boost.Program_options, Boost.Test (optional)
http://www.boost.org
* CMake (>=2.6)
http://www.cmake.org
----------------------------
Building dOpenCL from source
----------------------------
1. Create dOpenCL home
Create a directory and copy the dOpenCL sources into that directory.
This directory will become the dOpenCL home.
2. Build dOpenCL
dOpenCL is build in two steps: after creating a Make file using CMake, the
dOpenCL binaries and libraries are build using Make.
a) Creating the make file using CMake
The dOpenCL CMake configuration (CMakeLists.txt in dOpenCL home) allows
for the following settings:
FORCE_FLUSH=OFF
flush command queues after enqueing a command
This option can be set to increase concurrency of command execution
in OpenCL implementations that do not execute command before a
command queue is flushed (e.g., AMD APP SDK)
BUILD_SHARED_LIBS=ON
build dOpenCL communication library as shared object (recommended)
Note that the dOpenCL installable client driver (libdOpenCL.so) is
always built as a shared object.
ENABLE_IO_LINK_COMPRESSION=ON
enable experimental I/O link compression using the 842 algorithm
Besides, the CMake build type (CMAKE_BUILD_TYPE) has to be specified.
We recommend using the ncurses CMake GUI 'ccmake'.
We strongly recommend to perform an out-of-source build: create a
directory for building dOpenCL and change into that directory. For
example, create a subdirectory 'build' inside the dOpenCL home.
b) Build dOpenCL binaries and libraries using Make
After creating the make file with CMake, the dOpenCL binaries and
libraries can be built by calling 'make' in the build directory.
The corresponding commands for building dOpenCL are as follows:
cd <dOpenCL home>
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=Release ..
make
------------------
Installing dOpenCL
------------------
dOpenCL is most easily installed by calling 'make install' from within the build
directory. This will install dOpenCL in your system's default directory. Note
that the call requires root rights.
If you do not want to install dOpenCL into your default system directory, or if
you do not have appropriate rights to do so, you should export the DCL_HOME
environment variable, such that its value is the path to the dOpenCL build
directory.
After installing dOpenCL, refer to README_Linux.txt for information on how to
use dOpenCL.
Installable Client Driver (ICD)
-------------------------------
dOpenCL currently does not support OpenCL's ICD loader mechanism. Hence, either
the system's ICD loader (<system library directory>/libOpenCL.so) has to be
replaced by dOpenCL's ICD (libdOpenCL.so), or the dOpenCL ICD has to be added to
the list of preloaded libraries in the LD_PRELOAD environment variable.
------------
Known issues
------------
* CMake: Boost_DIR always is set to Boost_DIR-NOTFOUND
This is a known bug of the FindBoost CMake module (see
http://public.kitware.com/Bug/view.php?id=13453). The problem can be ignored as
CMake stills correctly finds the Boost directory (if Boost is installed).