- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"-g -s Kernels\\\\BCurveGPU.cl". The error is "Invalid option: -s". Can anyone provide me an example of exactly how to do this correctly? I have verified that I am getting the correct intel platform and device from the system. Thanks! I'm excited to use the debugger finally.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you give some more details, particularly what other params you are passing to clBuildProgram() and how you are creating the program object?
Thanks,
Raghu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Raghu,
I'm using the C++ cl:: classes. I have removed all other build options except for "-g -s" and it stillgives me the sameCL_INVALID_BUILD_OPTIONS"Invalid option: -s". If for some reason I was not getting the correct context, it seems like it would give the error for -g also, which it is not. I can send my entire .sln if you like but it has many files. Can you send me an example of a .cpp file where you prepare for debugging? It's not entirely clear to me how to specify the path correctly.I really appreciate your help. I've spent hours on this with no success.
void CBCurve::InitCPUPrgm()
{
cl_int clErr;
std::ifstream stream("kernels\\BCurveGPU.cl");
std::string sourceStringCPU(std::istreambuf_iterator
cl::Program::Sources sourceCPU(1, std::make_pair(sourceStringCPU.c_str(), sourceStringCPU.length()+1));
spBCrvPrgmCPU = new Program( pDM->GetContext( CL_DEVICE_TYPE_CPU ), sourceCPU);//pDM is a singleton that provides contexts, devices, etc..
std::vector<:DEVICE> devices;
devices.push_back( pDM->GetDevice( CL_DEVICE_TYPE_CPU ) );
std::string options("-g -s");
//options += " -Dreal="; options += CLREALSTR;
//options += " -Dreal4="; options += CLREAL4STR;
clErr = spBCrvPrgmCPU->build( devices, options.data());;
if(!clErr)
{
spKFindSpans = new cl::Kernel( *spBCrvPrgmCPU, "FindSpans", &clErr );
spKEvalCurve = new cl::Kernel( *spBCrvPrgmCPU, "EvaluateCurve", &clErr );
}
else
{
std::string log = spBCrvPrgmCPU->getBuildInfo
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"-g -s <>">
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am glad you were able to solve the issue. If you have further questions, please feel free to let us know and we'd be happy to help.
Thanks,
Raghu

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page