Hello,

How could clBuildProgram return 1?
After reading the specification and the cl.h i saw that it can't return 1 (just <= 0, success or error).

Is it a bug?

my code :

Code :
cl::PlatformList platforms = cl::GetPlatformList();
 
if(platforms.empty())
{
	return;
}
 
cl::Platform & platform = platforms.front();
 
cl::DeviceList devices = platforms.front().GetDeviceList(deviceType);
 
if(devices.empty())
{
	return;
}
 
cl::Device &	     device		(devices.front());
cl::Context		     context		(device);
cl::CommandQueue  commandQueue(context, device);
cl::Buffer		     buffer		(context, cl::Mem::WRITE_ONLY, ARRAY_SIZE * sizeof(Array::value_type));
cl::Program	     program	(context, sample::LoadSourceFile("sample1.cl"));
 
try
{
	program.Build();
}
catch (std::exception const & e)
{
}

ps:
I use nVidia 195.55 under vista 64.