Is it at all possible to get it working with RadeonSi. Most of the info I find is on Nvidea.
To your info I'm running Cauldron, but I think this question is more related to setup than to Mga version.
- Code: Select all
#include <iostream>
#include <vector>
#include <CL/cl.hpp>
using namespace std;
int main(int argc, char** argv) {
std::vector<cl::Platform> all_platforms;
cl::Platform::get(&all_platforms);
if (all_platforms.size() == 0) {
std::cout << " No platforms found. Check OpenCL installation!\n";
exit(1);
}
cl::Platform default_platform = all_platforms[0];
std::cout << "Using platform: " << default_platform.getInfo<CL_PLATFORM_NAME>() << "\n";
return 0;
}