Page 1 of 1

Übermittelt Pyopencl Arrays implizit auf den Speicher des Speichers?

Posted: 09 Apr 2025, 23:52
by Anonymous
Ich habe AMD GPU. Ich benutze Pyopencl. Ich habe einen Kontext und eine Warteschlange. Dann habe ich ein Array erstellt: < /p>
import pyopencl
import pyopencl.array
ctx = pyopencl.create_some_context(interactive=False)
queue = pyopencl.CommandQueue(ctx)
array = pyopencl.array.empty(queue, [10], dtype=float)
print(array)
< /code>
Die Druckanweisung zeigt einige Inhalte an. Hat Pyopencl Daten aus dem GPU -Speicher übertragen, um diese Werte zu drucken? Wenn nicht, woher kommen sie?