Skip to content

Commit

Permalink
Adjusted some descriptions and removed internal macros
Browse files Browse the repository at this point in the history
  • Loading branch information
ldh4 authored and cz4rs committed Jul 1, 2022
1 parent e6e2c45 commit 46cb16c
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions wiki-md-files-to-port/API-Reference/Macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,40 +84,25 @@ The following macros can be used to query the integral version values of used co
| ------| ---------------|
| `KOKKOS_COMPILER_NVCC` | Defined if NVIDIA compiler is used. |
| `KOKKOS_COMPILER_GNU` | Defined if GCC compiler is used. |
| `KOKKOS_COMPILER_INTEL` | Defined if Intel compiler or Intel LLVM compiler is used. |
| `KOKKOS_COMPILER_INTEL` | Defined if Intel Compiler Classic or Intel oneAPI DPC++/C++ Compiler is used. |
| `KOKKOS_COMPILER_IBM` | Defined if IBM compiler or XLClang is used. |
| `KOKKOS_COMPILER_CRAYC` | Defined if CRAY compiler is used for host code. |
| `KOKKOS_COMPILER_APPLECC` | Defined if Apple cc compiler is used. |
| `KOKKOS_COMPILER_CLANG` | Defined if Clang compiler is used. |
| `KOKKOS_COMPILER_PGI` | Defined if PGI compiler is used. |
| `KOKKOS_COMPILER_NVHPC` | Defined if NVHPC compiler is used. |
| `KOKKOS_COMPILER_MSVC` | Defined if MSVC compiler is used. |

## Compiler Extension for Atomics

| Macro | Description |
| ------| ---------------|
| `KOKKOS_ENABLE_CUDA_ATOMICS` | Defined if CUDA atomics is enabled when compiling NVIDIA device code. |
| `KOKKOS_ENABLE_GNU_ATOMICS` | Defined if GCC atomics is enabled when compiling host code. |
| `KOKKOS_ENABLE_INTEL_ATOMICS` | Defined if Intel atomics is enabled. |
| `KOKKOS_ENABLE_OPENMP_ATOMICS` | Defined if OpenMP atomics is enabled. |
| `KOKKOS_ENABLE_WINDOWS_ATOMICS` | Defined if Win32 atomics is enabled. |

## Compiler Options for Vectorization

| Macro | Description |
| ------| ---------------|
| `KOKKOS_ENABLE_PRAGMA_IVDEP` | Defined if the compiler is enabled to ignore assumed vector dependencies. [#pragma ivdep](https://www.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/pragmas/intel-specific-pragma-reference/ivdep.html) |
| `KOKKOS_ENABLE_PRAGMA_LOOPCOUNT` | Defined if the compiler is enabled to specify loop iterations for optimization. [#pragma loop count](https://www.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/pragmas/intel-specific-pragma-reference/loop-count.html) |
| `KOKKOS_ENABLE_PRAGMA_SIMD` | Defined if the compiler's SIMD intrinsics are enabled. [#pragma simd](https://www.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/pragmas/intel-specific-pragma-reference/simd.html) |
| `KOKKOS_ENABLE_PRAGMA_SIMD` | Defined if the compiler has SIMD intrinsics enabled. [#pragma simd](https://www.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/pragmas/intel-specific-pragma-reference/simd.html) |
| `KOKKOS_ENABLE_PRAGMA_UNROLL` | Defined if the compiler is enabled to do the loop unrolling. [#pragma unroll](https://www.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/pragmas/intel-specific-pragma-reference/unroll-nounroll.html) |
| `KOKKOS_ENABLE_PRAGMA_VECTOR` | Defined if the compiler is enabled to force vectorization. [#pragma vector](https://www.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/pragmas/intel-specific-pragma-reference/vector-1.html) |

## Allocation Mechanism

| Macro | Description |
| ------| ---------------|
| `KOKKOS_ENABLE_INTEL_MM_ALLOC` | Defined if set to use Intel [_mm_malloc](https://www.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/intrinsics/data-align-mem-alloc-intrins-and-inline-asmbly/allocating-and-freeing-aligned-memory-blocks.html) for the HostSpace memory allocation. |

## Architectures

| Macro | Description |
Expand Down

0 comments on commit 46cb16c

Please sign in to comment.