From 886260e61801c0f17d9dc263de9cd90d86a0d853 Mon Sep 17 00:00:00 2001 From: Michael Yuan Date: Mon, 20 May 2024 14:07:54 -0500 Subject: [PATCH] Update cuda.md --- docs/node-guide/tasks/cuda.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/node-guide/tasks/cuda.md b/docs/node-guide/tasks/cuda.md index 74a8b61..4af776f 100644 --- a/docs/node-guide/tasks/cuda.md +++ b/docs/node-guide/tasks/cuda.md @@ -76,10 +76,11 @@ Cuda compilation tools, release 12.2, V12.2.140 Build cuda_12.2.r12.2/compiler.33191640_0 ``` -After that, use the following command line to set up the environment path. You should probably add this line to your `~/.bashrc` or `~/.zshrc` files so that new terminals and future logins will still be able to find these CUDA library files. +After that, use the following two commands to set up the environment path. You should probably add these two lines to your `~/.bashrc` or `~/.zshrc` files so that new terminals and future logins will still be able to find these CUDA library files. ``` -export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} +export LD_LIBRARY_PATH=/usr/local/cuda/lib64:${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} +export PATH=/usr/local/cuda/bin:$PATH ``` ## More resources