Translations:OpenACC Tutorial - Adding directives/50/en: Difference between revisions
Jump to navigation
Jump to search
(Importing a new version from external source) |
(Importing a new version from external source) |
||
Line 1: | Line 1: | ||
The NVidia compilers use the < | The NVidia compilers use the <code>-ta</code> (target accelerator) option to enable compilation for an accelerator. | ||
We use the sub-option <code>tesla:managed</code> to tell the compiler that we want it compiled for Tesla GPUs, | |||
and we want to use [https://developer.nvidia.com/blog/unified-memory-cuda-beginners/ managed memory]. | |||
This ''managed memory'' simplifies the process of transferring data to and from the device. | |||
We will remove this option in a later example. | |||
We also use the option <code>-fast</code>, which is an optimization option. |
Revision as of 22:05, 23 December 2022
The NVidia compilers use the -ta
(target accelerator) option to enable compilation for an accelerator.
We use the sub-option tesla:managed
to tell the compiler that we want it compiled for Tesla GPUs,
and we want to use managed memory.
This managed memory simplifies the process of transferring data to and from the device.
We will remove this option in a later example.
We also use the option -fast
, which is an optimization option.