cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

aoooooooooon
Journeyman III

Non-ascii username causes compilation failure

clBuildProgram uses %TEMP%, that usually contains username

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.

0 Likes
4 Replies
genaganna
Journeyman III

aoooooooooon,

could you please send us more details to reproduce this issue like your system details and setting non-ASCII username on Windows?

0 Likes

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>

0 Likes

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.

 

0 Likes

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>

0 Likes