Skip to content

Commit 4baa98e

Browse files
RichardGemeistdan
andauthored
Merge pull request #49 from GPUOpen-LibrariesAndSDKs/next-release-10
Update to 3.0.2.4242e39 Co-authored-by: Daniel Meister <[email protected]>
2 parents 6441305 + e694335 commit 4baa98e

33 files changed

+234
-723
lines changed

.github/workflows/format.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,25 @@ on:
44
pull_request:
55
branches:
66
- master
7-
- HRT-0-format*
87

98

109
jobs:
1110
build:
1211
runs-on: ubuntu-latest
1312

1413
steps:
15-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1615
with:
1716
ref: ${{ github.event.pull_request.head.ref }}
18-
- uses: DoozyX/[email protected]
17+
18+
- uses: DoozyX/[email protected]
1919
with:
2020
source: './hiprt ./test'
2121
exclude: './contrib ./tools ./scripts'
2222
extensions: 'h,cpp,c'
2323
clangFormatVersion: 15
24-
inplace: True
24+
inplace: 'True'
25+
2526
- uses: EndBug/[email protected]
2627
with:
2728
author_name: rprbuild

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*.hipfb
99
*.bc
1010
build/
11+
build-cmake/
1112
dist/
1213
hiprt/hiprt.h
1314
hiprt/hiprtew.h
@@ -16,3 +17,4 @@ hiprt/cache/KernelArgs.h
1617
PUBLIC_OUT/
1718
hiprt/impl/bvh_build_array.h
1819
scripts/bitcodes/__pycache__/
20+
test/common/meshes/lfs

CMakeLists.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ project(hiprt)
66
#
77

88
# 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)
1010
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)
1111
option(BITCODE "Enable bitcode linking: when running the program, it's expected to find precompiled kernels as external files." OFF)
1212

1313
option(PRECOMPILE "Precompile kernels" OFF)
1414
option(HIPRTEW "Use hiprtew" OFF)
15-
option(NO_ENCRYPT "Don't encrypt kernel source and binaries" OFF)
1615
option(NO_UNITTEST "Don't build unit tests" OFF)
1716
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.
1817

@@ -85,10 +84,12 @@ function(get_version file)
8584
list(GET lines 0 major)
8685
list(GET lines 1 minor)
8786
list(GET lines 2 patch)
88-
set(patch_hex "0x${patch}")
87+
list(GET lines 3 hash)
88+
set(patch_hex "0x${hash}")
8989
set(major ${major} PARENT_SCOPE)
9090
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)
9293
endfunction()
9394

9495

@@ -167,8 +168,13 @@ function(get_hip_sdk_version result result_path)
167168
if(useHipFromPATH)
168169
set(hipCommand "hipcc")
169170
else()
170-
# try classic path used by HIPRT developers
171-
set(hipCommand "hipSdk\\bin\\hipcc")
171+
# use special path used by HIPRT developers
172+
if(EXISTS "hipSdk\\bin\\hipcc.exe")
173+
set(exec_perl "")
174+
set(hipCommand "hipSdk\\bin\\hipcc.exe")
175+
else()
176+
set(hipCommand "hipSdk\\bin\\hipcc")
177+
endif()
172178
endif()
173179
else()
174180

@@ -247,7 +253,7 @@ function(write_version_info in_file header_file version_file version_str_out)
247253
get_version(${version_file})
248254

249255
# set(version "${major}${minor}")
250-
# set(version_str "${version}_${patch}")
256+
# set(version_str "${version}_${hash}")
251257

252258
# Read the content of the header template file
253259
file(READ ${in_file} header_content)
@@ -266,14 +272,15 @@ function(write_version_info in_file header_file version_file version_str_out)
266272
set(version_str "${HIPRT_VERSION}" )
267273
endif()
268274

269-
# message(STATUS "HIPRT_API_VERSION: ${version_str}_${patch}")
275+
# message(STATUS "HIPRT_API_VERSION: ${version_str}_${hash}")
270276

271277
set(HIPRT_API_VERSION ${HIPRT_VERSION})
272278

273279
# Replace placeholders with actual version values
274280
string(REPLACE "@HIPRT_MAJOR_VERSION@" "${major}" header_content "${header_content}")
275281
string(REPLACE "@HIPRT_MINOR_VERSION@" "${minor}" header_content "${header_content}")
276282
string(REPLACE "@HIPRT_PATCH_VERSION@" "${patch}" header_content "${header_content}")
283+
string(REPLACE "@HIPRT_HASH_VERSION@" "${hash}" header_content "${header_content}")
277284
string(REPLACE "@HIPRT_VERSION_STR@" "\"${version_str}\"" header_content "${header_content}")
278285
string(REPLACE "@HIPRT_API_VERSION@" "${HIPRT_API_VERSION}" header_content "${header_content}")
279286

@@ -365,13 +372,6 @@ if(BITCODE)
365372
target_compile_definitions(${HIPRT_NAME} PRIVATE HIPRT_BITCODE_LINKING ORO_PRECOMPILED)
366373
endif()
367374

368-
if(NOT NO_ENCRYPT)
369-
target_compile_definitions(${HIPRT_NAME} PRIVATE HIPRT_ENCRYPT )
370-
set(ENV{HIPRT_NO_ENCRYPT} "OFF")
371-
else()
372-
set(ENV{HIPRT_NO_ENCRYPT} "ON")
373-
endif()
374-
375375

376376

377377
# files generated by compile.py and precompile_bitcode.py

contrib/easy-encryption/.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

contrib/easy-encryption/.gitignore

Lines changed: 0 additions & 34 deletions
This file was deleted.

contrib/easy-encryption/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

contrib/easy-encryption/README.md

Lines changed: 0 additions & 101 deletions
This file was deleted.

contrib/easy-encryption/b64.h

Lines changed: 0 additions & 47 deletions
This file was deleted.
-14.4 KB
Binary file not shown.
-14.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)