51
edits
Changes
→Instructions for AMD
#include <omp.h>
#include <stdio.h>
int main(void)
{
#pragma omp target
#pragma omp parallel { printf("Hello world from GPU! THREAD %d\n", omp_get_thread_num()); }
}
</pre>