Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Add DevicePtr parameterized on address space #84

Merged
merged 3 commits into from
Aug 1, 2017
Merged

Add DevicePtr parameterized on address space #84

merged 3 commits into from
Aug 1, 2017

Conversation

maleadt
Copy link
Member

@maleadt maleadt commented Jul 27, 2017

This PR refactors a core part of CUDAnative: how pointers are represented, and how they are accessed. It introduces a DevicePtr struct (Ptr + AS) with (WIP) intrinsics for accessing memory, specialized on the address space. The type is used in CuDeviceArray, making getindex faster for global loads (which LLVM couldn't figure out).

  • optimize unsafe_store!
  • tag required changes in LLVM.jl
  • tag CUDAdrv.jl
  • backport addrspace fixes to Julia 0.6

fixes #79

@maleadt maleadt force-pushed the tb/as branch 2 times, most recently from 67cb141 to 132edd6 Compare July 28, 2017 20:37
@maleadt maleadt closed this Jul 29, 2017
@maleadt maleadt reopened this Jul 29, 2017
@maleadt maleadt mentioned this pull request Jul 31, 2017
@maleadt maleadt changed the title WIP: Add DevicePtr parameterized on address space Add DevicePtr parameterized on address space Aug 1, 2017
@maleadt maleadt merged commit 928a3e4 into master Aug 1, 2017
@maleadt maleadt deleted the tb/as branch August 1, 2017 08:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parameterize CuDeviceArray on its address space
3 participants