opencl

GPU programming on Clojure?

ぃ、小莉子 提交于 2019-12-03 12:34:26
I'm wondering what if any GPU integration libraries exist for Clojure? I've seen examples of this that involve hand-rolling OpenCL code, but I'm specifically I'm looking for something similar to Anacoda accelerate, which translates Numpy Python expressions to CUDA code relatively seamlessly. I'm open to either OpenCL or Cuda approaches. here is a project that recently started on github https://github.com/JulesGosnell/clumatra . Its seems more like an experiment and its quite impressive! There is a Google Summer of Code project proposal to add a GPU matrix implementation to core.matrix : http:/

How do I test OpenCL on GPU when logged in remotely on Mac?

泄露秘密 提交于 2019-12-03 12:12:18
My OpenCL program can find the GPU device when I am logged in at the console, but not when I am logged in remotely with ssh. Further, if I run the program as root in the ssh session, the program can find the GPU. The computer is a Snow Leopard Mac with a GeForce 9400 GPU. If I run the program (see below) from the console or as root, the output is as follows (notice the "GeForce 9400" line): 2 devices found Device #0 name = GeForce 9400 Device #1 name = Intel(R) Core(TM)2 Duo CPU P8700 @ 2.53GHz but if it is just me, over ssh, there is no GeForce 9400 entry: 1 devices found Device #0 name =

OpenCL for Python

前提是你 提交于 2019-12-03 11:40:17
I'm looking for a good OpenCL wrapper\library for Python, with good documentation. I tried to search some... but couldn't find one good enough. The most popular and best documented option seems to be PyOpenCL . It claims to be a complete wrapper for OpenCL and the documentation looks good. Both CLyther and PyOpenCL look nicely documented to me. pycl is a ctypes binding to OpenCL (hosted on bitbucket ) Its primary goal is simple: wrap OpenCL in such a way that as many Python implementations can use it as feasible. It is currently tested on CPython 2.{5,6,7}, 3.2, and PyPy 1.5. It is known to

Preprocessor tomfoolery (stringifying a #include)

余生颓废 提交于 2019-12-03 11:21:56
问题 Note: This question has nothing to do with OpenCL per se... check the last paragraph for a succinct statement of my question. But to provide some background: I'm writing some C++ code that makes use of OpenCL. I like to keep the source for my OpenCL kernels in their own files, to keep coding and maintenance easy (as opposed to embedding the sources directly as string constants in associated C++ code). This inevitably leads to the question of how to load them into the OpenCL runtime once it

Visual studio 14.0 LNK2001 (unresolved external symbol ) with OpenCL

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am new to OpenCL. When I tried the examples from the website of Altera, I got several LNK2001 errors as follows Severity Code Description Project File Line Error LNK2001 unresolved external symbol __imp_sprintf hello_world C:\Users\S_KW\OpenCL\hello_world\alteracl.lib(acl_hal_mmd.obj) 1 Error LNK2001 unresolved external symbol __imp___iob_func hello_world C:\Users\S_KW\OpenCL\hello_world\alteracl.lib(acl_hal_mmd.obj) 1 Error LNK2001 unresolved external symbol __imp_fprintf hello_world C:\Users\S_KW\OpenCL\hello_world\alteracl.lib(acl_hal

Multiple OpenCl Kernels

匿名 (未验证) 提交于 2019-12-03 10:10:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I just wanted to ask, if somebody can give me a heads up on what to pay attention to when using several simple kernels after each other. Can I use the same CommandQueue ? Can I just run several times clCreateProgramWithSource + cl_program with a different cl_program ? What did I forget? Thanks! 回答1: You can either create and compile several programs (and create kernel objects from those), or you can put all kernels into the same program ( clCreateProgramWithSource takes several strings after all) and create all your kernels from

Understanding the usage of OpenCL in OpenCV (Mat/ Umat Objects)

喜你入骨 提交于 2019-12-03 10:04:07
I ran the code below to check for the performance difference between GPU and CPU usage. I am calculating the Average time for cv::cvtColor() function. I make four function calls: Just_mat() (Without using OpenCL for Mat object) Just_UMat() (Without using OpenCL for Umat object) OpenCL_Mat() (using OpenCL for Mat object) OpenCL_UMat() (using OpenCL for UMat object) for both CPU and GPU. I did not find a huge performance difference between GPU and CPU usage. int main(int argc, char* argv[]) { loc = argv[1]; just_mat(loc);// Calling function Without OpenCL just_umat(loc);//Calling function

Image processing with OpenCL.NET

北战南征 提交于 2019-12-03 09:41:27
I'm trying to do image processing on the GPU with .NET. I've downloaded OpenCL.NET wrapper . It has some good samples, but I cannot find a way to load an image to the GPU and read the processed image back. What do I have to do? After setting up the context, do the following: public void ImagingTest (string inputImagePath, string outputImagePath) { Cl.ErrorCode error; //Load and compile kernel source code. string programPath = Environment.CurrentDirectory + "/../../ImagingTest.cl"; //The path to the source file may vary if (!System.IO.File.Exists (programPath)) { Console.WriteLine ("Program

OpenCL research/ academic papers

匿名 (未验证) 提交于 2019-12-03 08:54:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm about to start my honours project at uni on OpenCL and how it can be used to improve modern game development. I know there is a couple of books out now/soon about learning opencl but I was wondering if anyone knows any good papers on opencl. I've been looking but can't seem to find any. Part of my project requires a literary review and contrast so any help on this would be appreciated. 回答1: I'll not point you directly to any papers, instead I'll give you a few hints on where to look for them. Google scholar , One of the best

DirectCompute versus OpenCL for GPU programming?

匿名 (未验证) 提交于 2019-12-03 08:50:26
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have some (financial) tasks which should map well to GPU computing, but I'm not really sure if I should go with OpenCL or DirectCompute. I did some GPU computing, but it was a long time ago (3 years). I did it through OpenGL since there was not really any alternative back then. I've seen some OpenCL presentations and it looks really nice. I haven't seen anything about DirectCompute yet, but I expect it to also be good. I'm not interested at the moment in cross-platform compatibility, and besides, I expect the two models to be similar