NVC/NVC++/NVFORTRAN Compilation Parameter Optimization
Table 1 lists the NVC/NVC++/NVFORTRAN compilation parameters, which can be added during compilation for optimization.
Compilation Option |
Description |
|---|---|
-Mcache_align |
Indicates cache alignment by byte. |
-Mfpapprox |
Uses low-precision approximation to perform operations such as division and square root. |
-Mautoinline |
Configures parameters for automatic inlining. |
-Minline |
Inlines simple functions that are called multiple times. |
-Mipa |
Performs process analysis and optimization. |
-Munroll |
Controls loop unrolling. |
-fast |
Enables vectorization, cache alignment, and flushz. |
-gpu=fastmath |
Specifies the GPU option to use the fast math library. |
-gpu=flushz |
Specifies the GPU option to enable flushz. |
-O 0 1 2 3 4 |
Indicates the code optimization level. O4 is recommended. |
Parent topic: GPU Compilation Parameter Optimization