Questions tagged [cloo]

Cloo is an open source, easy to use, managed library which enables .NET/Mono applications to take full advantage of the OpenCL framework.

Cloo is an object-oriented wrapper for OpenCL host code on the .NET and Mono platforms, written in C#. It is open source, and provides a somewhat higher-level abstraction of the OpenCL host APIs than a plain API wrapper would.

It is available at https://sourceforge.net/projects/cloo/ and licensed under an MIT license.

37 questions
6
votes
3 answers

OpenCL Cloo: Out of Resources Error

While running some test code in OpenCL (using Cloo C#), I started getting these OutOfResource errors from OpenCL and sometimes Unity just crashes entirely before I get an exception. I am basically re-calling a kernel function over and over with…
guitar80
  • 716
  • 6
  • 19
5
votes
2 answers

Cloo OpenCL c# Problem

I am trying to get a simple Cloo program to run but it is not working, can anyone tell me why? using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using…
Jamie
  • 1,005
  • 5
  • 16
  • 25
4
votes
1 answer

difference between openTK and cloo?

what is the difference between using openTk and cloo for developing openCL applications?
Nishanth
  • 6,932
  • 5
  • 26
  • 38
3
votes
0 answers

OpenCL: Cloo does not see API debugger

I use a C# wrapper called CLoo to use the OpenCL API. The openCL platform I use is the Intel CPU. When I run the official Intel sample code (a C/C++ application) then in the VS2010 IntelOpenCL plugin windows (Tools/Cod builder-OpenCL Debugger) I can…
user2281723
  • 519
  • 1
  • 5
  • 16
2
votes
0 answers

Where can I learn Cloo or OpenCL.Net?

I'm trying to find a tutorial for learn Cloo or OpenCL.Net, But I didn't find anything decent. Could someone suggest something that I may have missed in the search? Thank you!
MyName
  • 135
  • 1
  • 10
2
votes
1 answer

OpenCL Choosing Optimal Device for Throughput

I am working with Cloo, an OpenCL C# library, and I was wondering how I can best determine which device to use for my kernels at runtime. What I really want to know is how many cores I have (compute units * cores per compute unit) on GPUs. How do I…
guitar80
  • 716
  • 6
  • 19
2
votes
1 answer

Breakpoints not working in OpenCL kernel using Cloo(C# wrapper for OpenCL) and Intel SDK

I'm developing an OpenCL application in C# with Cloo. I'm getting strange values back from my device (Intel CPU), so I decided to use an OpenCL debugger to set some breakpoints in the kernel. They are ignored, even though I've enabled the Intel…
mic_head
  • 21
  • 1
2
votes
1 answer

Pointers and bit operators in GPU kernels

I want to perform a double threshold on a volume, using a GPU kernel. I send my volume, per slice, as read_only image2d_t. My output volume is a binary volume, where each bit specifies if its related voxel is enabled or disabled. My kernel checks if…
bastijn
  • 5,841
  • 5
  • 27
  • 43
2
votes
1 answer

Is it possible to get AMD APP Profiler working with C#/Cloo?

Does anyone know how/if it's possible to get AMD APP Profiler working on C# projects using the Cloo opencl library? I can run sprofile on my .NET app but even though it runs correctly no results are outputted. Edit: Heh, it does work I just had…
Callum Rogers
  • 15,630
  • 17
  • 67
  • 90
1
vote
1 answer

How can I convert a bitmap to pure black and white with OpenCL

I've got a WPF - C# project and I'm trying to speed up the image processing I'm doing in there; by doing it using OpenCL and Cloo. I did manage to get a kernel working that can change a bitmap to grayscale, but for some reason the black and white…
Shiasu-sama
  • 1,179
  • 2
  • 12
  • 39
1
vote
0 answers

OpenCLTemplate Out Of resources

i'm trying to write a game using raycast, and i want to transfer raycast calculations to the gpu, but for some reason it gives an outofresources error My function in which the Kernel should be executed public unsafe void GpGPU_Ray(float px,…
1
vote
1 answer

Picking an OpenCL Library for C#/Silveright

I'm interested in trying out OpenCL in a test project. But which library should I use? I'm not even sure what my choices are. I'm looking for: Something that works at a high-level of abstraction (OpenCL is very low-level). Something that works…
ashes999
  • 9,925
  • 16
  • 73
  • 124
1
vote
0 answers

Collision detection on GPU in C#

I have a Dictionary of Circles (random distributed in 2D-space) and a Position in 2D-space. The method should return just ANY circle, where the Position is within the radius of the circle. (There might be even more than one, but I don't care about…
Pixel_95
  • 954
  • 2
  • 9
  • 21
1
vote
1 answer

Image computation on GPU and value returning

I have a C# project in which I retreive grey-scale images from cameras and do some computation with the image data. The computations are quite time-consuming since I need to loop over the total image several times and I am doing it all on the…
1
vote
2 answers

How do get to the bottom with a OpenCL kernel build error using Cloo with .NET?

I am currently using VS2013. I have created a very simple C# solution that aims to use the Cloo with a simple class: using System; using System.Collections.Concurrent; using System.Threading.Tasks; using System.IO; using Cloo; namespace…
cdcdcd
  • 547
  • 1
  • 5
  • 15
1
2 3