4 Replies Latest reply on Dec 24, 2009 11:46 PM by aoooooooooon

    Non-ascii username causes compilation failure

    aoooooooooon
      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.

        • Non-ascii username causes compilation failure
          genaganna

          aoooooooooon,

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

            • Non-ascii username causes compilation failure
              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.

              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>

                • Non-ascii username causes compilation failure
                  genaganna

                   

                  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.

                   

                    • Non-ascii username causes compilation failure
                      aoooooooooon

                       

                      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>