Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15258

Re: CUDAFunctionLoad error with windows 7 64 bits

From "gebe13@neuf.fr" <gebe13@neuf.fr>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: CUDAFunctionLoad error with windows 7 64 bits
Date 2013-07-28 05:43 +0000
Message-ID <kt2b1q$1um$1@smc.vnet.net> (permalink)
References <kstgft$i3h$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


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}}

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

CUDAFunctionLoad error with windows 7 64 bits "gebe13@neuf.fr" <gebe13@neuf.fr> - 2013-07-26 09:45 +0000
  Re: CUDAFunctionLoad error with windows 7 64 bits "gebe13@neuf.fr" <gebe13@neuf.fr> - 2013-07-28 05:43 +0000

csiph-web