Skip to content

Commit 8be6e0d

Browse files
authored
Merge pull request #48 from GPUOpen-LibrariesAndSDKs/linux_demo_fixes
Linux demo fixes
2 parents 7c251a1 + f426d40 commit 8be6e0d

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,16 @@ cd tutorials
6565
../tools/premake5/linux64/premake5 gmake2
6666
````
6767

68-
4. Compile using the make file & run.
68+
4. Compile using the make file.
6969
````
70-
cd build
71-
make
70+
make config=release_x64
71+
````
72+
73+
5. Run a demo.
74+
````
75+
cd dist
76+
export LD_LIBRARY_PATH=../../hiprt/linux64/:$LD_LIBRARY_PATH
77+
bin/Release/19_primary_ray64
7278
````
7379

7480
These tutorials are made to run on both AMD and NVIDIA by specifying the device index.

tutorials/common/Common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ HIPRT_HOST_DEVICE HIPRT_INLINE uint2 tea( uint32_t val0, uint32_t val1 )
129129
v1 += ( ( v0 << 4 ) + 0xad90777d ) ^ ( v0 + s0 ) ^ ( ( v0 >> 5 ) + 0x7e95761e );
130130
}
131131

132-
return make_uint2( v0, v1 );
132+
return { v0, v1 };
133133
}
134134

135135
HIPRT_HOST_DEVICE HIPRT_INLINE float dot4( const float4& a, const float4& b )

0 commit comments

Comments
 (0)