Compiler Options Reference

Compiler Options Reference#

Detailed information about all the supported/unsupported options provided by AMD HIP Extension for building HIP programs can be found in the official compiler’s documentation. Below is the list of the official compiler references:

  1. LLVM clang compiler options (for HIP_clang Platform Toolset):

    https://clang.llvm.org/docs/ClangCommandLineReference.html

  2. NVIDIA CUDA nvcc compiler options (for HIP_nvcc Platform Toolset):

    https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#nvcc-command-options

  3. Microsoft Visual C++ (for both HIP_clang and HIP_nvcc Platform Toolsets):

    MSVC 17 (2022) compiler options:

    https://learn.microsoft.com/en-us/cpp/build/reference/compiler-options?view=msvc-170

    MSVC 17 (2022) linker options:

    https://learn.microsoft.com/en-us/cpp/build/reference/linker-options?view=msvc-170

    MSVC 17 (2022) lib options:

    https://learn.microsoft.com/en-us/cpp/build/reference/lib-reference?view=msvc-170

    MSVC 16 (2019) compiler options:

    https://learn.microsoft.com/en-us/cpp/build/reference/compiler-options?view=msvc-160

    MSVC 16 (2019) linker options:

    https://learn.microsoft.com/en-us/cpp/build/reference/linker-options?view=msvc-160

    MSVC 16 (2019) lib options:

    https://learn.microsoft.com/en-us/cpp/build/reference/lib-reference?view=msvc-160

    MSVC 15 (2017) compiler options:

    https://learn.microsoft.com/en-us/cpp/build/reference/compiler-options?view=msvc-150

    MSVC 15 (2017) linker options:

    https://learn.microsoft.com/en-us/cpp/build/reference/linker-options?view=msvc-150

    MSVC 15 (2017) lib options:

    https://learn.microsoft.com/en-us/cpp/build/reference/lib-reference?view=msvc-150