Re: CUDAFunctionLoad error with windows 7 64 bits
- To: mathgroup at smc.vnet.net
 - Subject: [mg131461] Re: CUDAFunctionLoad error with windows 7 64 bits
 - From: "gebe13 at neuf.fr" <gebe13 at neuf.fr>
 - Date: Sun, 28 Jul 2013 01:43:54 -0400 (EDT)
 - Delivered-to: l-mathgroup@mail-archive0.wolfram.com
 - Delivered-to: l-mathgroup@wolfram.com
 - Delivered-to: mathgroup-outx@smc.vnet.net
 - Delivered-to: mathgroup-newsendx@smc.vnet.net
 - References: <kstgft$i3h$1@smc.vnet.net>
 
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}}