Cannot use opencl in Metro Style project (WINRT)

I am writing code under WIN8 (Metro style app) and have problems using OpenCL.

My project works very well when I compile it and run it as a WIN8 desktop application. But when I change it to a Win store application (Metro style), then I can no longer use OpenCL.

//get platform id error = clGetPlatformIDs(1, &platformID, &numPlatforms); if(error != CL_SUCCESS) return; 

clGetPlatformIDs returns an error code of -1001 .

Can't I use the Metro-style OpenCL app? Someone, please help me deal with the problem. I'm new to WIN8

+4
source share
1 answer

The error code -1001 usually means that your driver is installed correctly, but the opencl runtime is not configured / installed properly.

You can try different things ...

1) Make sure you installed the updated driver and are not out of date (if you see a problem with the latest driver, which you can also repeat with the previous version)?

2) Uninstall the current driver completely and install it again.

0
source

Source: https://habr.com/ru/post/1435247/


All Articles