Skip to content

Commit

Permalink
Update nusc_cluster.md
Browse files Browse the repository at this point in the history
  • Loading branch information
friofry committed Jun 12, 2021
1 parent 5be52ad commit dfa987f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gpu_lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.18)
project(gpu_lib LANGUAGES CUDA)
project(gpu_lib LANGUAGES CXX CUDA)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CUDA_STANDARD 14)
Expand Down
16 changes: 12 additions & 4 deletions running_on_nusc_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,31 @@ cd motif_finder_cuda-1.0
mkdir build
cd build
```
6. Configure project:
6. Configure:

* Add to CUDA_COMPILER to path:
```shell
export PATH="/opt/shared/nvidia/cuda-10.2.89/bin:$PATH";
```

* Configure the project:
```shell
~/cmake-3.20.3-linux-x86_64/bin/cmake -DCMAKE_BUILD_TYPE=Release ..
export CC=gcc-8; export CXX=g++-8; ~/cmake-3.20.3-linux-x86_64/bin/cmake -DCMAKE_CUDA_HOST_COMPILER=/usr/bin/g++-8 -DCUDA_TOOLKIT_ROOT_DIR=/opt/shared/nvidia/cuda-10.2.89/ -DCMAKE_BUILD_TYPE=Release ..
```


7. Build:
```shell
~/cmake-3.20.3-linux-x86_64/bin/cmake --build . -j
```

8. Run:
* Copy test data:
```asm
```shell
cp ../motif_finder_gpu/init.ini ../motif_finder_gpu/test_12.fst motif_finder_gpu/
```
* Run:
```asm
```shell
cd motif_finder_gpu
./motif_finder_gpu
```

0 comments on commit dfa987f

Please sign in to comment.