-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Met error when trying this guide on FreeBSD 14.1-RELEASE #9
Comments
Works for me on a 14.x,
Though the main issue lies a bit further - something has changed in 14.x, and for some reason LD_PRELOAD makes linuxlator search for Linux native libs in the host path in some cases, notice the libdl.so.2 went missing (though it's present in the linuxlator tree):
How the hell the checking call still work I have absolutely no idea. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I followed your guide on my FreeBSD 14.1-RELEASE box with a 4060Ti card
the nv-sglrun nvidia-smi output likes below:
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.54.14 Driver Version: 550.54.14 CUDA Version: 12.4 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 4060 Ti Off | 00000000:01:00.0 Off | N/A |
| 0% 39C P0 28W / 165W | 0MiB / 16380MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
+-----------------------------------------------------------------------------------------+
but I met an error after I installed pytorch with cuda
(pytorch) [
]$ LD_PRELOAD="${BASE_PATH}/dummy-uvm.so" python3 -c 'import torch; print(torch.cuda.get_device_name(0))'/devs/conda/envs/pytorch-sd/lib/python3.10/site-packages/torch/cuda/init.py", line 329, in get_device_nameTraceback (most recent call last):
File "", line 1, in
File "
return get_device_properties(device).name
File "
/devs/conda/envs/pytorch-sd/lib/python3.10/site-packages/torch/cuda/init.py", line 359, in get_device_properties/devs/conda/envs/pytorch-sd/lib/python3.10/site-packages/torch/cuda/init.py", line 217, in _lazy_init_lazy_init() # will define _get_device_properties
File "
torch._C._cuda_init()
RuntimeError: Unexpected error from cudaGetDeviceCount(). Did you run some cuda functions before calling NumCudaDevices() that might have already set an error? Error 304: OS call failed or operation not supported on this OS
so I assume the uvm_ioctl_override.c code is out of date on FreeBSD 14? any idea?
Thanks,
Xin
The text was updated successfully, but these errors were encountered: