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. 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 )