The boot of the CUDA

Hello, I would like to ask you, my program will be stuck in cublasCreate(&handle) when it starts automatically; Here, I have no problem starting the program manually normally. What is the solution?
My script is as follows:
[Unit]
Description=/etc/rc.local Compatibility
Documentation=man:systemd-rc-local-generator(8)
ConditionFileIsExecutable=/etc/rc.local
After=network.target

[Service]
Type=forking
ExecStartPre=/bin/sleep 20
ExecStart=/etc/rc.local start
TimeoutSec=0
RemainAfterExit=yes
GuessMainPID=no

[Install]
WantedBy=multi-user.target
Alias=rc-local.service

#!/bin/bash

#su - orin -c “/home/orin/Desktop/ZD1201/ubuntuconfig.sh”
cd /home/orin/Desktop/ZD1201
sudo ./ubuntuconfig.sh &

sleep 3
#su - orin -c “/home/orin/Desktop/daemon”
cd /home/orin/Desktop/ZD1201/src
./process

exit 0