Cuda error for Zedfu on Ubuntu 22.04

Hi, I installed entire zed sdk. Now running Zedfu with Zed2i camera:
I get following error:
CUDA Initialisation failed : cudaErrorUnknown
Stack trace (most recent call last):
#22 Object “[0xffffffffffffffff]”, at 0xffffffffffffffff, in
#21 Object “/usr/local/zed/tools/ZEDfu”, at 0x55e7624435a4, in
#20 Object “/lib/x86_64-linux-gnu/libc.so.6”, at 0x7f8782e29e3f, in __libc_start_main
#19 Object “/lib/x86_64-linux-gnu/libc.so.6”, at 0x7f8782e29d8f, in
#18 Object “/usr/local/zed/tools/ZEDfu”, at 0x55e76244346b, in
#17 Object “/lib/x86_64-linux-gnu/libQt5Core.so.5”, at 0x7f87838c0cf3, in QCoreApplication::exec()
#16 Object “/lib/x86_64-linux-gnu/libQt5Core.so.5”, at 0x7f87838b875a, in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag)
#15 Object “/lib/x86_64-linux-gnu/libQt5Core.so.5”, at 0x7f87839130b7, in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag)
#14 Object “/lib/x86_64-linux-gnu/libglib-2.0.so.0”, at 0x7f87821193e2, in g_main_context_iteration
#13 Object “/lib/x86_64-linux-gnu/libglib-2.0.so.0”, at 0x7f87821706c7, in
#12 Object “/lib/x86_64-linux-gnu/libglib-2.0.so.0”, at 0x7f878211bd3a, in g_main_context_dispatch
#11 Object “/lib/x86_64-linux-gnu/libQt5Core.so.5”, at 0x7f8783913a66, in
#10 Object “/lib/x86_64-linux-gnu/libQt5Core.so.5”, at 0x7f87838bcf26, in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)
#9 Object “/lib/x86_64-linux-gnu/libQt5Core.so.5”, at 0x7f87838b9e39, in QCoreApplication::notifyInternal2(QObject*, QEvent*)
#8 Object “/usr/local/zed/tools/ZEDfu”, at 0x55e762444e62, in
#7 Object “/lib/x86_64-linux-gnu/libQt5Widgets.so.5”, at 0x7f878456c712, in QApplicationPrivate::notify_helper(QObject*, QEvent*)
#6 Object “/lib/x86_64-linux-gnu/libQt5Core.so.5”, at 0x7f87838e741d, in QObject::event(QEvent*)
#5 Object “/usr/local/zed/tools/ZEDfu”, at 0x55e7624679fc, in
#4 Object “/usr/local/cuda/lib64/libcudart.so.11.0”, at 0x7f8784c681b7, in cudaMemcpy2DToArray
#3 Object “/usr/local/cuda/lib64/libcudart.so.11.0”, at 0x7f8784c18a3c, in
#2 Object “/usr/local/cuda/lib64/libcudart.so.11.0”, at 0x7f8784c44643, in
#1 Object “/usr/local/cuda/lib64/libcudart.so.11.0”, at 0x7f8784c42714, in
#0 Object “/lib/x86_64-linux-gnu/libcuda.so.1”, at 0x7f87852c5915, in
Segmentation fault (Signal sent by the kernel [(nil)])
Segmentation fault (core dumped)
PLEASE Let me know what more information I should post

It worked when I installed zed from anaconda env.
And launched zed fu from anaconda activated environment

You cuda installation looks broken. If you just installed it, try to reboot.
Otherwise, remove it with

sudo apt purge nvidia-* cuda-* libnvidia-*
sudo rm -rf /usr/local/cuda*
sudo prime-select nvidia
sudo ubuntu-drivers install

The two last lines are especially helpful when using a laptop.
Then install the SDK again.