Clarify clEnqueueSVMMemcpy src_ptr and dst_ptr non-blocking lifetime requirements
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 57/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- markdown
- Ambito
- documentation
Direzione di ricerca
Start by locating the source documentation for clEnqueueSVMMemcpy and compare its blocking and non-blocking text with the cited clEnqueueMemcpyINTEL description. Determine how the specification should state pointer lifetime and access requirements for both src_ptr and dst_ptr, including whether src_ptr may be read before completion. Done means the relevant wording clearly and consistently describes these requirements.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The current description of clEnqueueSVMMemcpy does not clearly describe the lifetime requirements for the src_ptr and dst_ptr arguments, especially when the SVM memcpy is non-blocking (blocking is CL_FALSE).
I think it should be undefined behavior if either src_ptr or dst_ptr is freed before the SVM memcpy completes, or if the memory regions specified by src_ptr, dst_ptr, and size are modified before the SVM mempcy completes. Is this correct?
Assuming the memory region pointed to by src_ptr is accessible from the host, is it valid and defined behavior to read it before the SVM memcpy completes?
For easier reference, the current spec text kind of describes this scenario in two places (we should fix this) and only for dst_ptr (we should fix this, too):
First:
blocking_copy indicates if the copy operation is blocking or non-blocking.
If blocking_copy is CL_TRUE i.e. the copy command is blocking, clEnqueueSVMMemcpy does not return until the buffer data has been copied into memory pointed to by dst_ptr.
Then:
If blocking_copy is CL_FALSE i.e. the copy command is non-blocking, clEnqueueSVMMemcpy queues a non-blocking copy command and returns. The contents of the buffer that dst_ptr points to cannot be used until the copy command has completed. The event argument returns an event object which can be used to query the execution status of the read command. When the copy command has completed, the contents of the buffer that dst_ptr points to can be used by the application.
I think the definition is improved in the description of clEnqueueMemcpyINTEL in cl_intel_unified_shared_memory, but we could probably do better still, since this only talks about modification and does not say anything about the memory being freed:
blocking indicates if the copy operation is blocking or non-blocking. If blocking is CL_TRUE, the copy command is blocking, and the function will not return until the copy command is complete. Otherwise, if blocking is CL_FALSE, the copy command is non-blocking, and the contents of the dst_ptr cannot be used nor can the contents of the src_ptr be overwritten until the copy command is complete.
- Lingua principale
- Python
- Stelle
- 427
- Fork
- 137
- Merge medio
- 3g 21h
- PR unite (30g)
- 4
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di KhronosGroup/OpenCL-Docs
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
KhronosGroup/OpenCL-Docs#1651 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
KhronosGroup/OpenCL-Docs#1608 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
KhronosGroup/OpenCL-Docs#1585 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
KhronosGroup/OpenCL-Docs#1583 ·
I maintainer di solito rispondono entro 1 giorno
-
clSetUserEventStatus doumentation gotchaForse già presa @1sgtpepper l’ha presa 30 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
KhronosGroup/OpenCL-Docs#1564 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di KhronosGroup/OpenCL-Docs
Issue simili
-
[BUG] SMTP listener now binds to EMAIL_PORT instead of 2525 since the gunicorn switch 5.0.3-ls373Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
linuxserver/docker-healthchecks#137 · 1 commento ·
-
RequirementAgent treats list -> add -> list as a tool call cycle and drops the second list call (Python)Forse già presa @chaitanya0305 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
i-am-bee/beeai-framework#2049 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
fedora-infra/anitya#2272 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
unitaryfoundation/mitiq#3205 ·
I maintainer di solito rispondono entro 6 giorni
-
[Bug]: Index worker test drops empty Git config values on WindowsForse già presa @xiaoyesoso l’ha presa oggi. Apertatriage/confirmed
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
agentscope-ai/agentscope#4377 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni