MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: CUDAFunctionLoad error with windows 7 64 bits


I feel better because opencl works!

In[1]:= Needs["OpenCLLink`"]

In[2]:= src = "__kernel void addTwo_kernel(__global mint * arry, mint len) {
  	int index = get_global_id(0);
  	if (index >= len) return;
      arry[index] += 2;
  }";

In[3]:= addTwo = OpenCLFunctionLoad[src, "addTwo_kernel", {{_Integer}, _Integer}, 16]

Out[3]= OpenCLFunction["<>", "addTwo_kernel", {{_Integer}, "Integer64"}]

In[4]:= addTwo[ConstantArray[1, 10], 10]

Out[4]= {{3, 3, 3, 3, 3, 3, 3, 3, 3, 3}}



  • Prev by Date: Re: Having difficulties improving Legend and plot
  • Next by Date: Re: Incorrect (unexpected) output from TransformedField
  • Previous by thread: CUDAFunctionLoad error with windows 7 64 bits
  • Next by thread: Having difficulties improving Legend and plot