我是 OpenCL/OneAPI 的新手。如何更改此嵌套循环以使用 oneAPI GPU:
try {
for (int i = 0; i < count; i++) {
for (int j = 0; j < count; j++) {
if (a_array[i] * a_array[j] == max) {
p_found = a_array[i];
q_found = a_array[j];
throw "found";
}
}
}
}
catch (...) {
std::cout << "q = " << q_found << " and p = " << p_found << std::endl;
}