public static JittedKernel JitKernel(this String ptx, JitTuning tuning, HardwareIsa target) { ptx.AssertNotNull(); CudaDriver.Ensure(); var compiler = new JitCompiler(); compiler.Target = target; compiler.Tuning = tuning; var result = compiler.Compile(ptx); return(new JittedKernel(result)); }
public static JittedKernel JitKernel(this String ptx, JitTuning tuning) { ptx.AssertNotNull(); CudaDriver.Ensure(); var compiler = new JitCompiler(); compiler.TargetFromContext = true; compiler.Tuning = tuning; var result = compiler.Compile(ptx); return(new JittedKernel(result)); }