etaler / Etaler

A flexable HTM (Hierarchical Temporal Memory) framework with full GPU support.
BSD 3-Clause "New" or "Revised" License
89 stars 14 forks source link

Share OpenCL context across OpenCLBackends #16

Open marty1885 opened 5 years ago

marty1885 commented 5 years ago

Now each OpenCLBackend owns their own OpenCL Context. But for efficient data transfer between OpenCL devices (i.e. #15 ), all devices mush share the same context. Context sharing is done by manually initializing a context and initialize backends using said context. An automatic way should be implemented.