#14 BuildProgramFailure with Multi-byte characters

open
nobody
None
5
2012-12-21
2012-06-22
aokomoriuta
No

BuildProgramFailureComputeException is thrown when I build a program with source string including Multi-byte characters (e.g. Japanese character).
Followings are example:
----
var program = new ComputeProgram(context, @"
// あいうえお
__kernel void Test()
{
}
");
try
{
program.Build(this.Devices, null, null, IntPtr.Zero);
}
catch(BuildProgramFailureComputeException ex)
{
var log = program.GetBuildLog(this.Devices[0]);
}
----
The buildlog says:
----
:4:2: error: expected '}'
{
^
:4:1: note: to match this '{'
{
^
----
This is invalid error message.

Computer environment:
* Windows XP SP3
* .NET Framework 4.0
* GeForce310 296.10
* OpenCL 1.1 CUDA 4.1.1

Discussion