Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

array indexing of 8- and 16-bit types #58

Open
tmcdonell opened this Issue · 1 comment

1 participant

Trevor L. McDonell
Trevor L. McDonell
Collaborator

Indexing an array of 8- or 16-bit type within scalar code yields spurious results:

ghci> let xs = use $ fromList (Z:.10) [0..] :: Acc (Vector Int8)
ghci> CUDA.run $ A.map (\i -> xs ! index1 (A.fromIntegral i)) xs
Array (Z :. 10) [0,4,4,6,4,-123,6,-121,4,69]
Trevor L. McDonell
Collaborator

I don't think this will manifest when using 2.0 and later cards, because of the way indexing is implemented (texture references vs. array indexing)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.