Skip to content

Commit 2fb26b1

Browse files
committed
CMake CUDA update
1 parent cc428a8 commit 2fb26b1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
option(MAKE_SO "make the so" OFF)
55
set(CMAKE_CXX_FLAGS "-Wall")
6-
6+
set(USE_CUDNN 1)
77

88
# find_package(Torch REQUIRED)
99
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TORCH_CXX_FLAGS}")
@@ -38,6 +38,7 @@ find_package(xtensor REQUIRED)
3838
include_directories(${XTENSOR_INCLUDE_DIRS})
3939

4040
find_package(Torch REQUIRED)
41+
find_package(CUDAToolkit)
4142
#include_directories(${TORCH_INCLUDE_DIRS})
4243

4344

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ These are required to compile and run the C++ TDD library file:
77
* Pytorch 2.1.0
88
* Clang 14.0.0
99
* CMake 3.22.1
10+
* The JSON files from [https://github.com/nlohmann/json/tree/develop/single_include/nlohmann](https://github.com/nlohmann/json/tree/8c391e04fe4195d8be862c97f38cfe10e2a3472e/single_include/nlohmann) in a folder in project root called nlohmann
1011

1112
### Libtorch CUDA
1213
```

0 commit comments

Comments
 (0)