qsyao / cuda_spatial_deform

A fast tool to do image augmentation on GPU(especially elastic_deform), can be helpful to research on Medical Image.
Other
137 stars 26 forks source link

Help with install #15

Open pcaliber opened 2 years ago

pcaliber commented 2 years ago

I am a novice using cmake, and am stuck on the install.

The doc says:

cd cuda_backend
cmake -D CUDA_TOOLKIT_ROOT_DIR=/path/to/cuda .
make -j8

I have installed cmake, I cd to the directory I have cloned this project (.\cuda_spatial_deform\cuda_backend), but in the second step when I replace CUDA_TOOLKIT_ROOT_DIR with path to the version of CUDA I have installed (11.2)

cmake -D CUDA_TOOLKIT_ROOT_DIR=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2

I get the following errors:

CMake Warning:
  Ignoring extra path from command line:

   Toolkit\CUDA\v11.2

CMake Error: The source directory "./cuda_spatial_deform/cuda_backend/Files/NVIDIA" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.

Any help would be greatly appreciated!