You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CMakeLists.txt
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,12 @@ project(hiprt)
6
6
#
7
7
8
8
# Only one of those 3 flags should be ON at a time, or none. Multiple flags ON are untested and may cause issues.
9
-
option(BAKE_KERNEL "Enable the use of encrypted and baked kernels source code"OFF)
9
+
option(BAKE_KERNEL "Enable the use of baked kernels source code"OFF)
10
10
option(BAKE_COMPILED_KERNEL "If enabled, the kernels will be compiled and embedded as a buffer inside the binary. if you do that, you should also enable the flag 'PRECOMPILE'"OFF)
11
11
option(BITCODE "Enable bitcode linking: when running the program, it's expected to find precompiled kernels as external files."OFF)
12
12
13
13
option(PRECOMPILE "Precompile kernels"OFF)
14
14
option(HIPRTEW "Use hiprtew"OFF)
15
-
option(NO_ENCRYPT "Don't encrypt kernel source and binaries"OFF)
16
15
option(NO_UNITTEST "Don't build unit tests"OFF)
17
16
option(COMPILED_COMPRESSION "enable compression of compiled kernels"ON) # this argument is only used if BAKE_COMPILED_KERNEL is enabled -- advised to let it 'ON' as it's the path tested by the HIPRT team.
18
17
@@ -85,10 +84,12 @@ function(get_version file)
85
84
list(GET lines 0 major)
86
85
list(GET lines 1 minor)
87
86
list(GET lines 2 patch)
88
-
set(patch_hex "0x${patch}")
87
+
list(GET lines 3 hash)
88
+
set(patch_hex "0x${hash}")
89
89
set(major ${major} PARENT_SCOPE)
90
90
set(minor ${minor} PARENT_SCOPE)
91
-
set(patch ${patch_hex} PARENT_SCOPE)
91
+
set(patch ${patch} PARENT_SCOPE)
92
+
set(hash ${patch_hex} PARENT_SCOPE)
92
93
endfunction()
93
94
94
95
@@ -167,8 +168,13 @@ function(get_hip_sdk_version result result_path)
0 commit comments