Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*

sycl.dll was not found

Tamer_Assad
Innovator
6,518 Views

Hi,

 

Attempting to launch a DPC++ app (.exe) on windows os, results in an error message as shown below.

syclerr.png

 

What could cause this error? What are the redistribution requirements/packages? 

 

Best regards,

 

 

0 Kudos
9 Replies
AbhishekD_Intel
Moderator
6,518 Views

Hi Assad,

Check if sycl.dll file is present at location C:\Program Files (x86)\inteloneapi\compiler\2021.1-beta04\windows\bin or not.

If not there is the problem with your installation you can reinstall baseKit-04 .

You can find all the requirements for using OneAPI Base Toolkit at here

-Abhishek

0 Kudos
Tamer_Assad
Innovator
6,518 Views

Hi Abhishek,

 

Installing the latest base kit version "w_BaseKit_b_2021.1.4.423" has NOT fixed this problem.

Following the errors and placing "sycl.dll" side by side with the executable, then "libmmd.dll" then "pi_opencl.dll"

resulted in a silent app termination without exec, no shutdown, no clean-up.

The directory structure is intact, and relevant to "ONEAPI_ROOT", but not drive "C", are there hard coded paths?

Apparently, I'm missing the redistributables...

What are the redistributable requirements?

 

Best regards,

0 Kudos
Tamer_Assad
Innovator
6,517 Views

Deploying the following shared libraries side by side with the executable seems to work. Not tested on an external (oneAPI not installed) windows environment.

sycl.dll

libmmd.dll

pi_opencl.dll

OpenCL.dll

 

Best regards,

0 Kudos
AbhishekD_Intel
Moderator
6,518 Views

Hi Assad,

Check your installation once and if needed reinstall the base toolkit.

Because for us the latest base-kit is working fine on windows 10 OS without any .dll error and without explicitly linking libraries.

-Abhishek

0 Kudos
Tamer_Assad
Innovator
6,515 Views

Hi Abhishek,

 

Running an executable in the development time works well, using Intel oneAPI command prompt or MS-VS.

I have "w_BaseKit_b_2021.1.4.423".

The directory structure is intact, and relevant to "ONEAPI_ROOT".

 

The issue here is about launching the same executable from outside the development environment. Please try to double click it or call it from the standard cmd, in order to reproduce this issue.

 

Best regards,

0 Kudos
AbhishekD_Intel
Moderator
6,515 Views

Hi Assad,

I came to know your problem when you are double-clicking the executable(outside dev environment) it's showing "sycl.dll not found".

This error will persist because you are not in inteloneapi environment, before running that executable it's mandatory to source the environment in the same session, for this you have to execute %ONEAPI_ROOT%setvars.bat  in the same session where you want to run the executable.

You can open the CMD in the same directory(executable directory eg vector-add.exe) and first ran the setvarsh.bat file then your executable(eg vector-add.exe) it will run without error.

-Abhishek
 

0 Kudos
AbhishekD_Intel
Moderator
6,515 Views

Hi Assad,

Will you confirm for us if your problem is solved?

You are always welcome to post a new thread if you face any other issues.

-Abhishek

0 Kudos
Tamer_Assad
Innovator
6,515 Views

Hi Abhishek,

Launching a DPC++ app and overcoming linking issues in a development machin is considered solved following this thread.

Launching a DPC++ app in an external environment where oneAPI is not installed, discussion is continued at thread:

"DPC++ Linking and Deployment"

https://software.intel.com/en-us/forums/oneapi-data-parallel-c-compiler/topic/848900 

 

Thank you for your care.

 

Best regards,

0 Kudos
AbhishekD_Intel
Moderator
6,515 Views

Thank You, Assad, we are closing this thread.

You can post new threads if you face any issue.

-Abhishek

0 Kudos
Reply