include/hip/linker_types.h Source File

include/hip/linker_types.h Source File#

HIP Runtime API Reference: include/hip/linker_types.h Source File
linker_types.h
Go to the documentation of this file.
1
2/*
3Copyright (c) 2015 - 2023 Advanced Micro Devices, Inc. All rights reserved.
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without restriction, including without limitation the rights
8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9copies of the Software, and to permit persons to whom the Software is
10furnished to do so, subject to the following conditions:
11
12The above copyright notice and this permission notice shall be included in
13all copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21THE SOFTWARE.
22*/
23
24#ifndef HIP_INCLUDE_HIP_LINKER_TYPES_H
25#define HIP_INCLUDE_HIP_LINKER_TYPES_H
26
27#if defined(__clang__)
28#pragma clang diagnostic push
29#pragma clang diagnostic ignored "-Wreserved-identifier"
30#pragma clang diagnostic ignored "-Wreserved-macro-identifier"
31#endif
32
33
34#if !defined(__HIP_PLATFORM_AMD__) && defined(__HIP_PLATFORM_NVIDIA__)
35#elif defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
36
120
121// doxygen end LinkerTypes
126#else
127#error("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__");
128#endif
129
130#endif // HIP_INCLUDE_HIP_LINKER_TYPES_H
hipJitCacheMode
Definition linker_types.h:108
hipJitOption
Definition linker_types.h:47
hipJitFallback
Definition linker_types.h:116
hipJitInputType
Definition linker_types.h:89
@ hipJitCacheOptionCA
Definition linker_types.h:111
@ hipJitCacheOptionNone
Definition linker_types.h:109
@ hipJitCacheOptionCG
Definition linker_types.h:110
@ hipJitOptionIRtoISAOptCountExt
Hip Only Count of linker options to be passed on to compiler.
Definition linker_types.h:84
@ hipJitOptionCacheMode
CUDA Only Set cache mode.
Definition linker_types.h:64
@ hipJitOptionPositionIndependentCode
CUDA Only Generates Position Independent code.
Definition linker_types.h:77
@ hipJitOptionLto
Definition linker_types.h:70
@ hipJitOptionFastCompile
CUDA Only Set fast compile.
Definition linker_types.h:66
@ hipJitOptionInfoLogBuffer
CUDA Only Pointer to the buffer with logged information.
Definition linker_types.h:52
@ hipJitOptionErrorLogBuffer
CUDA Only Pointer to the buffer with logged error(s)
Definition linker_types.h:54
@ hipJitOptionPrecDiv
Definition linker_types.h:72
@ hipJitOptionTarget
CUDA Only JIT target.
Definition linker_types.h:59
@ hipJitOptionThreadsPerBlock
CUDA Only Number of thread per block.
Definition linker_types.h:50
@ hipJitOptionNumOptions
Number of options.
Definition linker_types.h:82
@ hipJitOptionOverrideDirectiveValues
Cuda only Override Directive values.
Definition linker_types.h:81
@ hipJitOptionGenerateLineInfo
CUDA Only Generate line number information.
Definition linker_types.h:63
@ hipJitOptionFtz
Definition linker_types.h:71
@ hipJitOptionOptimizationLevel
Definition linker_types.h:56
@ hipJitOptionErrorLogBufferSizeBytes
CUDA Only Size of the buffer in bytes for logged error(s)
Definition linker_types.h:55
@ hipJitOptionFma
Definition linker_types.h:75
@ hipJitOptionGlobalSymbolNames
CUDA Only Array of device symbol names to be relocated to the host.
Definition linker_types.h:67
@ hipJitOptionWallTime
CUDA Only Value for total wall clock time.
Definition linker_types.h:51
@ hipJitOptionGlobalSymbolAddresses
CUDA Only Array of host addresses to be relocated to the device.
Definition linker_types.h:68
@ hipJitOptionInfoLogBufferSizeBytes
CUDA Only Size of the buffer in bytes for logged info.
Definition linker_types.h:53
@ hipJitOptionGlobalSymbolCount
CUDA Only Number of symbol count.
Definition linker_types.h:69
@ hipJitOptionTargetFromContext
CUDA Only The target context, which is the default.
Definition linker_types.h:58
@ hipJitOptionMinCTAPerSM
Definition linker_types.h:78
@ hipJitOptionGenerateDebugInfo
CUDA Only Generate debug information.
Definition linker_types.h:61
@ hipJitOptionLogVerbose
CUDA Only Generate log verbose.
Definition linker_types.h:62
@ hipJitOptionPrecSqrt
Definition linker_types.h:74
@ hipJitOptionMaxRegisters
Definition linker_types.h:48
@ hipJitOptionSm3xOpt
Definition linker_types.h:65
@ hipJitOptionFallbackStrategy
CUDA Only Fallback strategy.
Definition linker_types.h:60
@ hipJitOptionMaxThreadsPerBlock
CUDA only Maximum number of threads in a thread block.
Definition linker_types.h:80
@ hipJitOptionIRtoISAOptExt
Hip Only Linker options to be passed on to compiler.
Definition linker_types.h:83
@ hipJitPreferBinary
Definition linker_types.h:118
@ hipJitPreferPTX
Definition linker_types.h:117
@ hipJitInputLLVMArchivesOfBundledBitcode
HIP Only LLVM Archive of Bundled Bitcode.
Definition linker_types.h:101
@ hipJitNumLegacyInputTypes
Count of Legacy Input Types.
Definition linker_types.h:98
@ hipJitInputCubin
Cuda only Input cubin.
Definition linker_types.h:90
@ hipJitInputLibrary
Definition linker_types.h:94
@ hipJitNumInputTypes
Count of Input Types.
Definition linker_types.h:103
@ hipJitInputObject
Cuda Only Host Object with embedded device code.
Definition linker_types.h:93
@ hipJitInputFatBinary
Cuda Only Input FAT Binary.
Definition linker_types.h:92
@ hipJitInputLLVMBitcode
HIP Only LLVM Bitcode or IR assembly.
Definition linker_types.h:99
@ hipJitInputPtx
Cuda only Input PTX.
Definition linker_types.h:91
@ hipJitInputSpirv
HIP Only SPIRV Code Object.
Definition linker_types.h:102
@ hipJitInputLLVMBundledBitcode
HIP Only LLVM Clang Bundled Code.
Definition linker_types.h:100
@ hipJitInputNvvm
Definition linker_types.h:96