I think, https://devcloud.intel.com/oneapi/documentation/job-submission/ contains incorrect sample of the PBS job.sh:
#!/bin/bash source /opt/intel/inteloneapi/setvars.sh make run
But user don't need for execution setvars.sh (environment is already setup on all nodes) and even he can't execute one (no permissions).
Thank you for posting in Intel Forums. The sample mentioned in the documentation is just an example to show how to create a job script and submit a batch job. You could add any other commands in a script file according to your requirement.
Though the OneAPI Environment is already setup, you could still execute setvars.sh script whenever required with the below command:
source setvars.sh --force
We also provided a command to show you that there are read, write and execute permissions for the setvars.sh file.
user@login:~$ ls -l /opt/intel/oneapi/setvars.sh -rwxr-xr-x 1 root root 24707 May 26 13:05 /opt/intel/oneapi/setvars.sh
Please try all the steps we provided and let us know.