Search…
CUDA Compatibility Drivers
This procedure is considered OmniSci experimental.
In some situations, you might not be able to upgrade NVIDIA CUDA drivers on a regular basis. To work around this issue, NVIDIA provides compatibility drivers that allow users to use newer features without requiring a full upgrade. For information about compatibility drivers, see https://docs.nvidia.com/deploy/cuda-compatibility/index.html.

Installing the Drivers

Use the following commands to install the CUDA 11 compatibility drivers on Ubuntu:
1
wget
2
https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
3
4
mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
5
6
apt-key adv --fetch-keys
7
https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
8
9
add-apt-repository "deb
10
https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
11
12
apt update
13
14
nvidia-smi
15
16
apt install cuda-compat-11-0
17
18
nvidia-smi
19
20
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-11.0/compat/
21
22
nvidia-smi
Copied!
After the last nvidia-smi, ensure that CUDA shows the correct version.
The driver version will still show as the old version.

Updating systemd Files

After installing the drivers, update the systemd files in /lib/systemd/system/omnisci_server.service.
In the service file, add the following environment path:
1
[Unit]
2
Description=OmniSci database server
3
After=network.target remote-fs.target
4
5
[Service]
6
Environment=LD_LIBRARY_PATH=/usr/local/cuda-11.0/compat/
7
User=sam
8
Group=sam
9
WorkingDirectory=/opt/omnisci
10
ExecStart=/opt/omnisci/bin/omnisci_server --config /var/lib/omnisci/omnisci.conf
11
KillMode=control-group
12
SuccessExitStatus=143
13
LimitNOFILE=65536
14
Restart=always
15
16
[Install]
17
WantedBy=multi-user.target
Copied!
If that path does not exist, make ensure you have installed the compatibility drivers correctly.
Last modified 7mo ago
Export as PDF
Copy link