3 ms·
I've written a few Reddit posts on the subject: https://www.reddit.com/r/ROCm/comments/adyu5k/amd_rocm_hcc_programming_introduction/ https://www.reddit.com/r/R
by dragontamer 8y ago
I've written a few Reddit posts on the subject:
https://www.reddit.com/r/ROCm/comments/adyu5k/amd_rocm_hcc_programming_introduction/ https://www.reddit.com/r/ROCm/comments/adyu5k/amd_rocm_hcc_p...
https://www.reddit.com/r/gpgpu/comments/adyxpi/musings_on_vega_gcn_architecture/ https://www.reddit.com/r/gpgpu/comments/adyxpi/musings_on_ve...
There's a 3rd story here: GCC's style is OpenMP 4.5. The big news is that the following kind of code is now possible:
#pragma omp target map(a,b,c,d)
{
#pragma parallel for
for(int i=0; i<1000000; i++){
a[i] = b[i] * c + d ;
}
}
The above code will run on the GPU. GCC, CLang, and other languages are trying to support OpenMP 4.5's ability to offload code to GPUs.
That's what this GCC9 news is about: AMD GPUs are gaining the ability to execute the above code, integrated into OpenMP Tasks and all that good stuff.
- twtw 8y agoHasn't this worked via HSAIL for years?
- vetrom 8y agoHSAIL depends on an ecosystem of non-free software components. Granted, it's an uphill battle to get the concert of moving pieces that would be needed for 3d/compute acceleration cards to work on a fully open source stack. That said, getting GCC to do a better job implementing code for those is a big step in that direction.