CudafyModule km = CudafyTranslator.Cudafy(); causing an error, can't find compiler

99封情书 提交于 2020-01-04 02:54:28
问题 I'm trying to run my 1st cudafy project but I'm getting the following error on the following line: CudafyModule km = CudafyTranslator.Cudafy(); Below is a screenshot of the exact error message I'm getting. I've run the example projects which come with Cudafy and they run fine so I don't understand why its saying it can't find the compiler. I've added the to the references, see screenshot below, and all the info is exactly the same as the example projects, on the right hand side of

Avoiding nvcc compilation when using Cudafy

此生再无相见时 提交于 2020-01-03 05:20:50
问题 I'm using Cudafy and would like my users to be able to use CUDA without installing the CUDA SDK, but they can use the Cudafy DLL. To avoid nvcc compilation done automatically in CudafyTranslator.Cudafy(types) , I'm using the following approach: string directory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); string modulePath = Path.Combine(directory, myType.Name + ".cdfy"); CudafyModule km = CudafyModule.TryDeserialize(modulePath); if (ReferenceEquals(km, null) || !km with NSight, debugger not working

让人想犯罪 __ 提交于 2019-12-11 04:56:14
问题 As the topic states, I cant get the debugger working. Below is the sequence of steps ive done. Note: I have Cuda 5.0 installed and NSight visual studio edition 3.0 installed. Ive heard that it is possible to debug now with a single GPU. I'm assuming 5.0 is OK and I don't need the 5.5 release candidate? 1) Changed code to include the following as per the instructions on the site: CudafyModes.Target = eGPUType.Cuda; CudafyModes.DeviceId = 0; CudafyTranslator.Language = eLanguage.Cuda;

Passing an array within a structure in CUDAfy

自闭症网瘾萝莉.ら 提交于 2019-12-06 10:15:48
问题 Using VS 2012, .NET 4.5, 64bit and CUDAfy 1.12 and I have the following proof of concept using System; using System.Runtime.InteropServices; using Cudafy; using Cudafy.Host; using Cudafy.Translator; namespace Test { [Cudafy(eCudafyType.Struct)] [StructLayout(LayoutKind.Sequential)] public struct ChildStruct { [MarshalAs(UnmanagedType.LPArray)] public float[] FArray; public long FArrayLength; } [Cudafy(eCudafyType.Struct)] [StructLayout(LayoutKind.Sequential)] public struct ParentStruct {

CUDAfy.NET giving Win32Exception: The system cannot find the file specified

家住魔仙堡 提交于 2019-11-30 15:07:29
问题 I've added a reference to the CUDAfy.NET library via NuGet. <package id="CUDAfy.NET" version="1.12.4695.21111" targetFramework="net45" /> When I run my program, I hit a Win32Exception : The system cannot find the file specified This happens on the first actual line of the program: CudafyModule km = CudafyTranslator.Cudafy(); There's no indication from the exception object as to what file they're attempting to load. How can I get past this problem? EDIT I see the same exception when running