hip

How to convert precision in Image type from Double to Word8 using HIP?

两盒软妹~` 提交于 2020-06-16 03:37:26
问题 I have an image in the type Image VS Y Double (after using function readImageY from HIP library) and I want to convert it to Image VS Y Word8 . How should I go about doing this? I need to have it in this precision for the next function I am applying this to. Here's a snippet of the relevant code: import Codec.Picture import Codec.Picture.Types import Control.Arrow import Data.Ratio import Data.Monoid import Graphics.Image.Processing import qualified Graphics.Image as I import Graphics.Image

What are the requirements for using `shfl` operations on AMD GPU using HIP C++?

不羁的心 提交于 2019-12-11 07:23:55
问题 There is AMD HIP C++ which is very similar to CUDA C++. Also AMD created Hipify to convert CUDA C++ to HIP C++ (Portable C++ Code) which can be executed on both nVidia GPU and AMD GPU: https://github.com/GPUOpen-ProfessionalCompute-Tools/HIP There are requirements to use shfl operations on nVidia GPU: https://github.com/GPUOpen-ProfessionalCompute-Tools/HIP/tree/master/samples/2_Cookbook/4_shfl#requirement-for-nvidia requirement for nvidia please make sure you have a 3.0 or higher compute