Skip to content

Commit

Permalink
Add missing device flags to some philox methods (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shihab-Shahriar authored Dec 11, 2024
1 parent 92dc12a commit ba9fec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/openrand/philox.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ class Philox : public BaseRNG<Philox> {
}
}

openrand::uint4 draw_int4() {
OPENRAND_DEVICE openrand::uint4 draw_int4() {
generate();
return openrand::uint4{_out[0], _out[1], _out[2], _out[3]};
}

openrand::float4 draw_float4() {
OPENRAND_DEVICE openrand::float4 draw_float4() {
generate();
return openrand::float4{
u01<float, uint32_t>(_out[0]), u01<float, uint32_t>(_out[1]),
Expand Down

0 comments on commit ba9fec3

Please sign in to comment.