Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tutorials/common/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down