Cudnn installed but import torch from python does not recognize paths

I installed cudnn rhel9 path from instruction: Installing cuDNN on Linux — NVIDIA cuDNN v9.5.0 documentation
Installation went ok but whenever I do seemingly simple import statement from python:
“import python”
now it is complaining about all sorts of different libraries:

line 13, in
import torch
File “/usr/local/lib64/python3.9/site-packages/torch/init.py”, line 237, in
from torch._C import * # noqa: F403
ImportError: libcupti.so.12: cannot open shared object file: No such file or directory

I was able to find those so files in /usr path and used LD_LIBRARY_PATH to get by but it would complain about another so library and so on and so on:
libnccl.so.2
libcudnn.so.2 etc
Would not installation of cudnn would take care of all these paths?

GOT IT working after adding last two lines:
[root@localhost ch9]# cat /etc/ld.so.conf.d/cuda-12-3.conf
/usr/local/cuda-12.3/targets/x86_64-linux/lib
/usr/local/lib/python3.9/site-packages/nvidia/cuda_cupti/lib/
/usr/local/lib/python3.9/site-packages/nvidia/nccl/lib/