{"action":"opened","issue":{"url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1196","labels_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1196/labels{/name}","comments_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1196/comments","events_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1196/events","html_url":"https://github.com/arrayfire/arrayfire/issues/1196","id":124286683,"number":1196,"title":"Use CPU libraries when possible for CPU OpenCL devices","user":{"login":"pavanky","id":364829,"avatar_url":"https://avatars.githubusercontent.com/u/364829?v=3","gravatar_id":"","url":"https://api.github.com/users/pavanky","html_url":"https://github.com/pavanky","followers_url":"https://api.github.com/users/pavanky/followers","following_url":"https://api.github.com/users/pavanky/following{/other_user}","gists_url":"https://api.github.com/users/pavanky/gists{/gist_id}","starred_url":"https://api.github.com/users/pavanky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavanky/subscriptions","organizations_url":"https://api.github.com/users/pavanky/orgs","repos_url":"https://api.github.com/users/pavanky/repos","events_url":"https://api.github.com/users/pavanky/events{/privacy}","received_events_url":"https://api.github.com/users/pavanky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-30T00:33:00Z","updated_at":"2015-12-30T00:33:00Z","closed_at":null,"body":"For example it might be faster to use MKL / OpenBLAS when performing linear algebra functions or FFT operations for CPU devices.\r\n\r\nThere are two ways it can be achieved.\r\n\r\n1) Copy data to \"host\" memory, do the operation, copy back. This might be useful only after a particular size.\r\n\r\n2) Consider using clEnqueueMapBuffer. Check if the performance of this function is faster than dual copies mentioned in (1).\r\n"}}