Do we need a new memory flag to create buffers from Unified SVM allocations?

Aperta
#1,637 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
documentation

Direzione di ricerca

Start by reading the OpenCL specification text for clCreateBuffer, CL_MEM_USE_HOST_PTR, and Unified SVM allocations. Determine whether a new memory flag is needed for Unified SVM pointers and whether host_ptr should be renamed; done means the proposal has a resolved API direction and corresponding specification changes.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

cl_khr_unified_svm

Currently, buffers can be created from a SVM allocation by calling clCreateBuffer using the CL_MEM_USE_HOST_PTR flag and setting the SVM pointer in the host_ptr argument.
The definition for the host_ptr argument is:

host_ptr is a pointer to the buffer data that may already be allocated by the application.

However, a Unified SVM allocation could not allow host accesses and then, using this flag and argument would not be allowed to create buffers.

This could be fixed by adding a new memory flag CL_MEM_USE_UNIFIED_SVM_PTR that would require the application to pass an actual Unified SVM pointer in the host_ptr argument.

Also, if this flag is added. Should the host_ptr argument be renamed?

Lingua principale
Python
Stelle
427
Fork
137
Merge medio
3g 21h
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di KhronosGroup/OpenCL-Docs

Tutte le issue di KhronosGroup/OpenCL-Docs

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.