cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

arvin99
Adept II

disable Virtual Memory (VM) on GPU

Hi,

I have a problem. I want to implement transfer using pinned host memory (NOT zero copy buffer).

According to table memory object in AMD APP SDK, it can be achieve by using CL_MEM_ALLOC_HOST_PTR +  using CL_Enqueue_Map_Buffer.

If I use it,the result is zero copy buffer since VM is enabled by default.

According to table, to achieve transfer data using pinned host memory, we can use   CL_MEM_ALLOC_HOST_PTR +  using CL_Enqueue_Map_Buffer without VM.

So, How to disable virtual memory (VM) ??

0 Likes
1 Solution
nou
Exemplar

table 5.2 tells where is buffer placed if you use it as kernel argument. buffer created with CL_MEM_ALLOC_HOST_PTR is always pinned host memory until you use it as kernel argument. regardless if is VM enabled or not. GPU with VM wlll modify buffer directly through PCIe. the system without VM must copy it to device memory.

View solution in original post

0 Likes
1 Reply
nou
Exemplar

table 5.2 tells where is buffer placed if you use it as kernel argument. buffer created with CL_MEM_ALLOC_HOST_PTR is always pinned host memory until you use it as kernel argument. regardless if is VM enabled or not. GPU with VM wlll modify buffer directly through PCIe. the system without VM must copy it to device memory.

0 Likes