Hey everyone, I’m trying to use the “new” OpenMP 4.0, that has support for devices.
I’m using my notebook with ubuntu.
But I don’t understand how it work, because I have added the “#pragma omp target” but still processing on the CPU only.
Anybody know if NVIDIA’s GPUs are compatible with OpenMP 4?? Or what I’m doing wrong?
A part of my code for sample…
void multply()
{
int i, j , v;
#pragma omp target map(m3, m2, m1)
#pragma omp parallel for private (i, j, v)
for (i = 0; i < size; i++)
for (j = 0; j < size; j++)
for (v = 0; v < size; v++)
m3[i][j] = m3[i][j] + m1[i][v] * m2[v][j];
}