- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Numerical models means scientific models written in Fortran, such as WRF, ROMS, POM, SWAN. Computations in numerical models should be serious and efficient. In order to minimize data transfer, most of the variables should stay in device GPU, instead of reading from or writing to CPU memory frequently.
Recently I learned that Intel oneAPI can offload OpenMP codes to Intel GPU automatically. That is cool because NVidia CUDA is way ugly to code and no model developers like it. But I can't find exact grammar on Intel websites to avoid data transfer.
On some AMD and NVidia websites, I found grammar below:
!$OMP TARGET ENTER DATA MAP (to: B,A)
They say it could make variable A and B stay in device.
I tried this grammar in Intel IFX compiler, it works. But I am not sure if it works like they say.
As a numerical model developer, all I want to do is to put all major variables to GPU side, then do computing hours and days without transferring with CPU, only write data back to CPU when outputting.
I am quite sure that if this is achieved, Intel GPU would be the most popular in numerical modelling. CUDA would vanish here.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Intel has several webinars and articles to get you started using OpenMP directives to offload to Intel GPUs.
- GPU Offloading: The Next Chapter for Intel® Fortran Compiler
- https://www.intel.com/content/www/us/en/developer/videos/offload-fortran-workloads-new-gpus-using-openmp.html#gs.6gfgib
- https://www.intel.com/content/www/us/en/developer/videos/three-quick-practical-examples-openmp-offload-gpus.html#gs.6gfgr7
There’s a Getting Started Guide and this article in Parallel Universe.
![](/skins/images/98E68944C1FF703B8AC50091329B92AF/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page