From 24ac11bcc06c4061983c0d9b71cbec8e1fe7ca7a Mon Sep 17 00:00:00 2001 From: Richard Geslot Date: Tue, 3 Jun 2025 12:58:16 +0200 Subject: [PATCH 1/2] fix for issues/40 https://github.com/GPUOpen-LibrariesAndSDKs/HIPRTSDK/issues/40 --- tutorials/common/Common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/common/Common.h b/tutorials/common/Common.h index 55dcec3..bc0dd8f 100644 --- a/tutorials/common/Common.h +++ b/tutorials/common/Common.h @@ -129,7 +129,7 @@ HIPRT_HOST_DEVICE HIPRT_INLINE uint2 tea( uint32_t val0, uint32_t val1 ) v1 += ( ( v0 << 4 ) + 0xad90777d ) ^ ( v0 + s0 ) ^ ( ( v0 >> 5 ) + 0x7e95761e ); } - return make_uint2( v0, v1 ); + return { v0, v1 }; } HIPRT_HOST_DEVICE HIPRT_INLINE float dot4( const float4& a, const float4& b ) From f426d4019edfc5c4ed0d00df7348979e7618ead2 Mon Sep 17 00:00:00 2001 From: Richard Geslot Date: Tue, 3 Jun 2025 13:00:43 +0200 Subject: [PATCH 2/2] improve doc for Linux --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0b3d4e7..f96c3e7 100644 --- a/README.md +++ b/README.md @@ -65,10 +65,16 @@ cd tutorials ../tools/premake5/linux64/premake5 gmake2 ```` -4. Compile using the make file & run. +4. Compile using the make file. ```` -cd build -make +make config=release_x64 +```` + +5. Run a demo. +```` +cd dist +export LD_LIBRARY_PATH=../../hiprt/linux64/:$LD_LIBRARY_PATH +bin/Release/19_primary_ray64 ```` These tutorials are made to run on both AMD and NVIDIA by specifying the device index.