Run without the CUDA tookit

Aug 15, 2016 at 3:00 PM
Hi

Perhaps a stupid question, but if I only need OpenCL support, can CUDAfy.NET run without this bulky toolkit (just short of a whopping 1GB).
Jan 5 at 7:22 PM
I have the same problem.
What i did is install the cuda framework, nsight,
but running this very first cudafy code yields me an exception

CudafyModule m = Cudafy.Translator.CudafyTranslator.Cudafy(eArchitecture.OpenCL);


System.Reflection.AmbiguousMatchException was unhandled
HResult=-2147475171
Message=Ambiguous match found.
Source=mscorlib
StackTrace:
   at System.RuntimeType.GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)
   at System.Type.GetMethod(String name, BindingFlags bindingAttr)
   at Cudafy.Translator.CudafyTranslator.DoCudafy(CudafyModule cm, Type[] types)
   at Cudafy.Translator.CudafyTranslator.Cudafy(IEnumerable`1 props, Type[] types)
   at Cudafy.Translator.CudafyTranslator.Cudafy(CompileProperties prop, Type[] types)
   at Cudafy.Translator.CudafyTranslator.Cudafy(eArchitecture arch)
   at Drawer.Form1.button21_Click(Object sender, EventArgs e) in C:\Dropbox\Work\c#\Marvin\Drawer\Form1.cs:line 755
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at Drawer.Program.Main() in C:\Dropbox\Work\c#\Marvin\Drawer\Program.cs:line 19
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
InnerException: