Skip to content

Commit

Permalink
Change output type for Normal example from Int to Float (#419)
Browse files Browse the repository at this point in the history
The normal distribution does not output ints; set output type to float instead.
  • Loading branch information
AbhinavPraveen authored Feb 16, 2024
1 parent efaa73c commit d354041
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/include/rocrand/rocrand.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3733,8 +3733,8 @@ typedef xorwow default_random_engine;
/// int main()
/// {
/// const size_t size = 8192;
/// unsigned int * output;
/// hipMalloc(&output, size * sizeof(unsigned int));
/// float * output;
/// hipMalloc(&output, size * sizeof(float));
///
/// rocrand_cpp::random_device rd;
/// rocrand_cpp::mtgp32 engine(rd()); // seed engine with a real random value, if available
Expand Down

0 comments on commit d354041

Please sign in to comment.