Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Readme #9

Merged
merged 1 commit into from
Jun 8, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update Readme
Signed-off-by: Romain Keramitas <[email protected]>
  • Loading branch information
r0mainK committed Jun 8, 2018
commit 94e6f89e5c9b4e582c80c3869a90ddad4d852e88
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,20 @@ Building
```
cmake -DCMAKE_BUILD_TYPE=Release . && make
```
It requires cudart, curand >=8.0 and OpenMP 4.0 compatible compiler (**that is, not gcc <=4.8**).

It requires cudart, curand >=8.0, OpenMP 4.0 compatible compiler (**that is, not gcc <=4.8**) and
cmake >= 3.2.
If [numpy](http://www.numpy.org/) headers are not found,
specify the includes path with defining `NUMPY_INCLUDES`.
If you do not want to build the Python native module, add `-D DISABLE_PYTHON=y`.
If CUDA is not automatically found, add `-D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-8.0`
(change the path to the actual one).
(change the path to the actual one).
If you are building in a Docker container you may encounter the following error:
`Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY)`
This means you need to install the rest of the CUDA toolkit, which can be installed like in the
`nvidia/cuda:8.0-devrel` [Dockerfile](https://gitlab.com/nvidia/cuda/blob/ubuntu16.04/8.0/devel/Dockerfile).
If you still run into `Could NOT find CUDA (missing: CUDA_INCLUDE_DIRS)` then run:
```ln -s /usr/local/cuda/targets/x86_64-linux/include/* /usr/local/cuda/include/```

Python users: if you are using Linux x86-64 and CUDA 8.0, then you can
install this easily:
Expand Down