[Beignet] Low latency io
Pan, Xiuli
xiuli.pan at intel.com
Fri Mar 25 02:38:21 UTC 2016
Hi Svein,
I see there is one option of SVM atomic, actually we now support this feature on our OCL20 branch. If this can help then it will be eailer then, you will need a bdw+ cpu and a very new version kernel and libdrm, and a llvm3.8+ with some patch to build one OpenCL2.0 environment.
I have some question about the old style way, is the kernel need to be running all the time as the io changes the memory? And do some response to it at a low latency?
And could you explain the idea about how “invalidate a cache line from the kernel” can help with you requires?
Thanks
Xiuli
From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of Svein Berge
Sent: Sunday, March 20, 2016 11:36 PM
To: beignet at lists.freedesktop.org
Subject: [Beignet] Low latency io
Hello, Beignet list!
I'm doing a project that involves low latency i/o. I could use a solution like gpudirect (nvidia) or directgma (amd), but these are only available on high end cards which would otherwise be overkill for my project. As far as I understand the intel processor architecture (which is admittedly not very far), it should be possible to do something similar on intel graphics hardware with relatively simple means.
The idea is to set up an i/o device to read/write data to/from a physical memory area which is mapped into an opencl buffer (using svm or possibly even ocl1.2-style mapping).
The problem is to synchronize the i/o device with the kernel. With svm atomics you could maybe busy-wait in the kernel, but this option is not (yet) available. Without atomics, the busy-wait loop will simply access the cache and not see that the system memory is updated by the i/o device. You could also let the cpu handle synchronization, but given the low latency requirements of this project, that requires at least an rt-patched kernel, wasting a whole cpu core just for busy-waiting plus the enqueueing overhead.
As far as I understand, the only thing required to allow busy-waiting in a kernel is (in absence of atomics) the ability to invalidate a cache line from the kernel. Is there any way to do this that I have overlooked?
Cheers,
Svein Berge
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/beignet/attachments/20160325/ddb05b81/attachment.html>
More information about the Beignet
mailing list