opencl

OpenCL vs OpenMP performance [closed]

十年热恋 提交于 2019-12-31 08:13:11
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . Have there been any studies comparing OpenCL to OpenMP performance? Specifically I am interested in the overhead cost of launching threads with OpenCL, e.g., if one were to decompose the domain into a very large number of individual work items (each run by a thread doing a small

OpenCL vs OpenMP performance [closed]

别等时光非礼了梦想. 提交于 2019-12-31 08:12:02
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . Have there been any studies comparing OpenCL to OpenMP performance? Specifically I am interested in the overhead cost of launching threads with OpenCL, e.g., if one were to decompose the domain into a very large number of individual work items (each run by a thread doing a small

Build OpenCV with OpenCL Enabled and ON

孤街浪徒 提交于 2019-12-30 11:38:34
问题 I'm trying to run simple code with OpenCL enabled on OpenCV. I've read the intro to OCL documentation and, as instructed, I built opencv with this flag: WITH_OPENCL=ON. I did this by doing cmake -DWITH_OPENCL=ON and then built opencv on Mac (OS X Yosemite). I then tried to run my code, but, according to my code, haveOpenCL() is false. #include <iostream> #include <fstream> #include <string> #include <iterator> #include <opencv2/opencv.hpp> #include <opencv2/core/ocl.hpp> using namespace std;

Does NVidia support OpenCL SPIR?

眉间皱痕 提交于 2019-12-30 08:27:17
问题 I am wondering that whether nvidia supports spir backend or not? if yes, i couldn't find any document and sample example about that. but if not, is there a any way to work spir backend onto nvidia gpus? thanks in advance 回答1: Since SPIR builds on top of OpenCL version 1.2, and so far Nvidia has not made any OpenCL 1.2 drivers available, it is not possible to use SPIR with Nvidia GPUs. As mentioned in the comments, Nvidia has made PTX available as intermediate language (also based on LLVM IR).

CL_MEM_USE_HOST_PTR Vs CL_MEM_COPY_HOST_PTR Vs CL_MEM_ALLOC_HOST_PTR

微笑、不失礼 提交于 2019-12-30 08:23:37
问题 In the book OpenCl By Action I read this: CL_MEM_USE_HOST_PTR: The memory object will access the memory region specified by the host pointer. CL_MEM_COPY_HOST_PTR: The memory object will set the memory region specified by the host pointer. CL_MEM_ALLOC_HOST_PTR: A region in host-accessible memory will be allocated for use in data transfer. I am utterly confused o these three flags. I would like to know at least how are the first two different. 1-In CL_MEM_USE_HOST_PTR Memory Object will

CL_OUT_OF_RESOURCES for 2 millions floats with 1GB VRAM?

回眸只為那壹抹淺笑 提交于 2019-12-29 08:43:12
问题 It seems like 2 million floats should be no big deal, only 8MBs of 1GB of GPU RAM. I am able to allocate that much at times and sometimes more than that with no trouble. I get CL_OUT_OF_RESOURCES when I do a clEnqueueReadBuffer, which seems odd. Am I able to sniff out where the trouble really started? OpenCL shouldn't be failing like this at clEnqueueReadBuffer right? It should be when I allocated the data right? Is there some way to get more details than just the error code? It would be cool

How can I change the device on wich OpenCL-code will be executed with Umat in OpenCV?

耗尽温柔 提交于 2019-12-29 06:32:32
问题 As known, OpenCV 3.0 supports new class cv::Umat which provides Transparent API (TAPI) to use OpenCL automaticaly if it can: http://code.opencv.org/projects/opencv/wiki/Opencv3#tapi There are two indtroductions to the cv::Umat and TAPI: Intel: https://software.intel.com/en-us/articles/opencv-30-architecture-guide-for-intel-inde-opencv AMD: http://developer.amd.com/community/blog/2014/10/15/opencv-3-0-transparent-api-opencl-acceleration/ But if I have: Intel CPU Core i5 (Haswell) 4xCores

Turn off VisualAssist for *.cl, *.cu and *.cuh

*爱你&永不变心* 提交于 2019-12-25 12:46:07
问题 How can I define which filetypes are affected by VisualAssist in Visual Studio 2010? For example, I don't like how this tool works with openCL and cuda files, therefore I would like to turn off it for these file types (oherwise it highlights 1000 errors). 回答1: Visual Assist does not underline errors in C/C++ files in VS2010 - that is done by the default intellisense. You can disable underlining but not on a per-file extension basis; it is all or nothing. See Tools | Options | Text Editor | C

Turn off VisualAssist for *.cl, *.cu and *.cuh

こ雲淡風輕ζ 提交于 2019-12-25 12:46:06
问题 How can I define which filetypes are affected by VisualAssist in Visual Studio 2010? For example, I don't like how this tool works with openCL and cuda files, therefore I would like to turn off it for these file types (oherwise it highlights 1000 errors). 回答1: Visual Assist does not underline errors in C/C++ files in VS2010 - that is done by the default intellisense. You can disable underlining but not on a per-file extension basis; it is all or nothing. See Tools | Options | Text Editor | C

Opencl clGetPlatformIDs error -1001

帅比萌擦擦* 提交于 2019-12-25 10:31:13
问题 I am trying to run some OpenCL programs. I have a NVidia graphics card (GeForce 6600). But , when I execute my program and I get a error : Unable to get platforms -1001 My OS is ArchLinux and I already install the following packages ( from pacman ): 1. libcl 2. opencl-headers 3. opencl-nvidia-304xx 4. lib32-opencl-nvidia-304xx How to fix this problem in my environment? or what necessary packages need to install? thanks. 回答1: OpenCL-error -1001 "CL_PLATFORM_NOT_FOUND_KHR" doesn't necessarily