51
edits
Changes
→Instructions for AMD
#pragma omp parallel
{
printf("Hello world from GPU!THREAD %d\n", omp_get_thread_num());
}
}
export AOMP="/usr/lib/aomp"
export PATH=$AOMP/bin:$PATH
export LIBOMPTARGGET_KERNEL_TRACELIBOMPTARGET_KERNEL_TRACE=1
clang -O2-fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx803 helloWorld.c -0 helloWorld