CUDA Path Not Correctly Configured

Hello,
I am trying to configure Pytorch with CUDA support. However, torch.cuda.is_available() keeps on returning false.

Checking nvidia-smi, I am using CUDA 10.0. I modified my bash_profile to set a path to CUDA.

export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64\{LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

When attempting to use CUDA, I received this error.
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=50 error=30 : unknown error

Is there some solution?