summaryrefslogtreecommitdiff
path: root/doc/installation.md
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2018-02-26 19:52:53 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2018-02-26 19:52:53 +0100
commitbe8d95bd03f71877759cd3f5959df4d2ffb9bad8 (patch)
tree9b4fd53843f36c0f63069acec70a48dda82cc668 /doc/installation.md
parentd6fa188abf62d4f00cd5fa3faf78073e18c4f25e (diff)
Added a note on preventing segfaults with OpenCL using the AMD APP SDK
Diffstat (limited to 'doc/installation.md')
-rw-r--r--doc/installation.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/installation.md b/doc/installation.md
index d0856e58..6b37d96e 100644
--- a/doc/installation.md
+++ b/doc/installation.md
@@ -64,6 +64,12 @@ Building a static version of the library instead of shared one (.dylib/.so) can
cmake -DBUILD_SHARED_LIBS=OFF ..
+In case you run into segfaults with OpenCL programs (known to happen with the AMD APP), you can try the following (thanks to [kpot](https://github.com/CNugteren/CLBlast/issues/243#issuecomment-367277297)):
+
+1. Use `-fPIC` or its analogue when compiling. In CMake you can do this by adding `set(CMAKE_POSITION_INDEPENDENT_CODE ON)` to the project config.
+
+2. Forbid CMake to add RPATH entries to binaries. You can do this project-wise with `set(CMAKE_SKIP_BUILD_RPATH ON)` in CMake.
+
Windows compilation from source
-------------