When I use Ubuntu, I put the program into the boot auto-start script, and the program will get stuck in a certain position of the program when it runs

I would like to ask you, there is no problem when my program is run manually, but after I set the boot auto-start in the script (sudo gedit /etc/rc.local), I found that the program is stuck in this position after boot running:
cublasHandle_t handle1;
cublasCreate(&handle1);
I will cublasCreate(&handle1); After the annotation,After starting again,The program continues to run to the back,Stuck in the loop of applying for two-dimensional pointer space,The back can’t run.,I think it should be the setting problem of boot auto-start.,Is there any way to solve it?
Here’s my script:
[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