Open main menu

CDOT Wiki β

Changes

GPU621/GPU Targeters

33 bytes added, 16:44, 4 December 2020
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
51
edits