-
Drivers
-
Products
-
Processors
-
Technologies
-
NVIDIA GRID
-
3D Vision
-
Platforms
-
SHIELD
-
-
Communities
-
Support
-
Shop
-
About NVIDIA
OpenACC directives are the fast, simple and portable way to accelerate your scientific code. With OpenACC, you insert compiler hints – in the form of OpenMP-like directives – into the compute-intensive portions of even the largest, most complex Fortran or C application, and the compiler automatically maps that code to an accelerator – including NVIDIA GPUs -- for higher performance. (OpenACC is fully compatible — and interoperates — with OpenMP and MPI.)
Now available from industry leaders - Cray, CAPS entreprise, and The Portland Group (PGI), OpenACC compilers are:
Here's an example of how a single directive hint can accelerate the calculation of pi. With accelerator directives, you can get started and see results in the same afternoon.
"The PGI compiler is now showing us just how powerful it is. On the software we are writing, it's many times faster on the NVIDIA card. We are very pleased and excited about the future uses. It's like owning a personal supercomputer."
Dr. Kerry Black
University of Melbourne
Learn more...
"I have written micromagnetic codes (written in Fortran 90) to study the properties of two and three dimensional magnetic systems. The directives approach enabled me to port my existing code with ease to perform my computations on the GPU which resulted in a significant speedup of the computation."
Professor M. Amin Kayali
University of Houston
Learn more...
| Fortran Version |
|
program picalc implicit none integer, parameter :: n=1000000 integer :: i real(kind=8) :: t, pi pi = 0.0 !$acc parallel loop do i=0, n-1 t = (i+0.5)/n pi = pi + 4.0/(1.0 + t*t) end do !$acc end parallel loop print *, 'pi=', pi/n end program picalc |
To learn more about OpenACC Directives:
You'll need an NVIDIA® CUDA-capable GPU and a Fortran or C based application to get started. Don't have an accelerator? We recommend an NVIDIA Tesla K20 GPU.