-
as seen on Stack Overflow
- Search for 'Stack Overflow'
So I downloaded the ATI Stream SDK. I don't have a gpu now so I use the '-device cpu' and got the programs/examples in the OpenCl directory working by adding the directory to LD_LIBRARY_PATH etc.
Now the problem is when installing QtOpenCl.
configure script gives me:
skkard@skkard-desktop:~/Applications/qt-labs-opencl$…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've been playing with OpenCL recently, and I'm able to write simple kernels that use only global memory. Now I'd like to start using local memory, but I can't seem to figure out how to use get_local_size() and get_local_id() to compute one "chunk" of output at a time.
For example, let's say I wanted…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, what's the basic setup for Linux to compilie a C/C++ examples from OpenCL SDK?
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am trying to parallel a classic map-reduce problem (which can parallel well with MPI) with OpenCL, namely, the AMD implementation. But the result bothers me.
Let me brief about the problem first. There are two type of data that flow into the system: the feature set (30 parameters for each) and…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Is it possible to use custom types in OpenCL kernel like gmp types (mpz_t, mpq_t, …) ?
To have something like that (this kernel doesn't build just because of #include <gmp.h>) :
#include <gmp.h>
__kernel square(
__global mpz_t* input,
__global mpz_t number,
__global int* output…
>>> More
-
as seen on Programmers
- Search for 'Programmers'
After reading about OpenMP and not finding functions to support semaphores, I did an internet search for OpenMP and the readers and writers problem, but found no suitable matches.
Is there a general method for replacing counting semaphores in OpenMP with something that it supports? Or is there just…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, people.
I try to use openmp for multithreading the loop through std::set. When I write the following code -
#pragma omp parallel for
for (std::set<A>::const_iterator i = s.begin(); i != s.end(); ++i) {
const A a = *i;
operate(a);
}
I get an error -…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a large C++ program that modifies the FPU control word (using _controlfp()). It unmasks some FPU exceptions and installs a SEHTranslator to produce typed C++ exceptions. I am using VC++ 9.0.
I would like to use OpenMP (v.2.0) to parallelize some of our computational loops. I've already…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I am trying to run a program on a computer cluster. The structure of the program is the following:
PROGRAM something
...
CALL subroutine1(...)
...
END PROGRAM
SUBROUTINE subroutine1(...)
...
DO i=1,n
CALL subroutine2(...)
ENDDO
...
END SUBROUTINE
SUBROUTINE subroutine2(...)
...
CALL subroutine3(…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
My matrix multiplication code is
int matMul(int ld, double** matrix)
{
//local variables initialize
omp_set_num_threads(nthreads);
#pragma omp parallel private(tid,diag,ld) shared(i,j,k,matrix)
{
/* Obtain and print thread id */
tid = omp_get_thread_num();
for ( k=0; k<ld; k++) …
>>> More