set

Crash on clGetPlatformIDs when AMD runtime can't create temp file

Discussion created by set on Feb 27, 2015
Latest reply on Mar 2, 2015 by maxdz8

When calling clGetPlatformIDs AMD OpenCL runtime tries to create temporary file (version 14.12 tries to do this in TMP folder, earlier versions used current(!) folder).

 

Now suppose it failed to do so, for example process is run with minimal privileges and can't write even to TMP. The result? It crashes miserably terminating the whole process by calling NtTerminateProcess with code 0xc0000417 from amdocl.dll.

 

System: Win7x64, Radeon HD6950.

Outcomes