clBuildProgram returns CL_BUILD_PROGRAM_FAILURE if %TEMP% contains non-ascii characters.
I think this problem is caused by some Win32 ANSI APIs imported from OpenCL.dll.
Stream KernelAnalyser has the same problem.
aoooooooooon,
could you please send us more details to reproduce this issue like your system details and setting non-ASCII username on Windows?
Sorry, I meant non-ASCII characters as multibyte characters like CJK.
OS : Windows XP SP3 Japanese Edition
Username : ??????? ("test user" in Japanese)
%TEMP% : C:\DOCUME~1\???~1\LOCALS~1\Temp (whether short or long filename)
I copy and paste a command prompt log.
Z:\samples\opencl\bin\x86>echo %TEMP% C:\DOCUME~1\???~1\LOCALS~1\Temp Z:\samples\opencl\bin\x86>HelloCL.exe HelloCL! Creating a context For test only: Expires on Sun Feb 28 00:00:00 2010 Getting device info Loading and compiling CL source Program::build() failed (-11) Z:\samples\opencl\bin\x86>set TEMP=Z:\temp Z:\samples\opencl\bin\x86>HelloCL.exe HelloCL! Creating a context For test only: Expires on Sun Feb 28 00:00:00 2010 Getting device info Loading and compiling CL source Running CL program Done Passed! Z:\samples\opencl\bin\x86>
Originally posted by: aoooooooooon Sorry, I meant non-ASCII characters as multibyte characters like CJK.
OS : Windows XP SP3 Japanese Edition Username : ??????? ("test user" in Japanese) %TEMP% : C:\DOCUME~1\???~1\LOCALS~1\Temp (whether short or long filename)
I copy and paste a command prompt log.
Thank you for detailed information.
Make sure this folder( C:\DOCUME~1\???~1\LOCALS~1\Temp) exists before running any sample.
I am sure it runs if folder exist already. I am getting same error if folder is not there.
Originally posted by: genaganna
Thank you for detailed information.
Make sure this folder( C:\DOCUME~1\???~1\LOCALS~1\Temp) exists before running any sample.
I am sure it runs if folder exist already. I am getting same error if folder is not there.
I confirmed the folder existed. If the folder is not, the console says "The system cannot find the path specified."
Z:\samples\opencl\bin\x86>set TEMP=Z:\NotExisted Z:\samples\opencl\bin\x86>HelloCL.exe HelloCL! Creating a context For test only: Expires on Sun Feb 28 00:00:00 2010 Getting device info Loading and compiling CL source The system cannot find the path specified. Program::build() failed (-11) Z:\samples\opencl\bin\x86>