OpenCL Windows AMD Error - opencl an invalid option was specified

143 Views Asked by At

I was trying to build a very simple kernel that compiles on Ubuntu. However, on Windows it gives me a very strange error:

Upon catching and printing the build error as such:

catch (cl::BuildError e)
{
    auto buildInfo = e.getBuildLog();
    for (auto &pair : buildInfo)
        std::cerr << "Device: " << pair.first.getInfo<CL_DEVICE_NAME>() << std::endl <<
                                   pair.second << std::endl;
    error("Error",
          __LINE__, __FUNCTION__, __FILE__);
}

I get an error saying:

Device: Pitcairn
An invalid option was specified
Error

Why is this happening? What does this error even mean? I have an ATI Radeon R7 370 and Windows 10.

0

There are 0 best solutions below