From d354041861a25cace197c9b1aba13abb1da5b9d8 Mon Sep 17 00:00:00 2001 From: Abhinav Praveen Date: Fri, 16 Feb 2024 23:40:05 +0000 Subject: [PATCH] Change output type for Normal example from Int to Float (#419) The normal distribution does not output ints; set output type to float instead. --- library/include/rocrand/rocrand.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/include/rocrand/rocrand.hpp b/library/include/rocrand/rocrand.hpp index f7c9489e..bc3cf41c 100644 --- a/library/include/rocrand/rocrand.hpp +++ b/library/include/rocrand/rocrand.hpp @@ -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