public FxCudaPTX(FxCuda cuda, String filename, String path) { string resName; if (IntPtr.Size == 8) resName = filename+"x64.ptx"; else resName = filename + ".ptx"; ptxFile = File.OpenRead(path + "/" + resName); this.cuda = cuda; }
public Form1() { InitializeComponent(); cuda = new FxCuda(true); MultiProcessorCount = cuda.ctx.GetDeviceInfo().MultiProcessorCount; listAllVertex = new List<FxVector2f>(); }