Skip to content

Instantly share code, notes, and snippets.

@dceoy
Created October 12, 2018 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dceoy/14ee88911d9ca761c33725999d77561b to your computer and use it in GitHub Desktop.
Save dceoy/14ee88911d9ca761c33725999d77561b to your computer and use it in GitHub Desktop.
[CUDA] Configure CUDA
#!/usr/bin/env bash
#
# Usage: ./install_cudnn.sh <tar file>
set -ex
[[ -n "${1}" ]] \
&& tar -xzvf ${1} -C /tmp \
&& cp /tmp/cuda/include/cudnn.h /usr/local/cuda/include \
&& cp /tmp/cuda/lib64/libcudnn* /usr/local/cuda/lib64 \
&& chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment