tugrul512bit / Cekirdekler

Multi-device OpenCL kernel load balancer and pipeliner API for C#. Uses shared-distributed memory model to keep GPUs updated fast while using same kernel on all devices(for simplicity).
GNU General Public License v3.0
93 stars 10 forks source link

Read-only and write-only flags for ClArray #39

Closed tugrul512bit closed 7 years ago

tugrul512bit commented 7 years ago

So pci-e may be used even better for device-to-device or load balanced programs.

tugrul512bit commented 7 years ago

read-only buffers will not be written and write-only buffers will not be read(both in host and kernel side)

setting (read/write)-only field will lock all boolean flags: write,writeAll,read,partialRead.

tugrul512bit commented 7 years ago

CL_MEM_HOST_READ_ONLY --> "write_only" CL_MEM_WRITE_ONLY --> "write_only"

CL_MEM_HOST_WRITE_ONLY --> "read_only" CL_MEM_READ_ONLY --> "read_only"