Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Exception: ErrorCompilation: Compilation error.
- Test(1): catastrophic error: cannot open source file "curand.h"
- 1 catastrophic error detected in the compilation of "Test".
- Compilation terminated.
- Exception: ErrorCompilation: Compilation error.
- C:Program FilesNVIDIA GPU Computing ToolkitCUDAv10.0includecurand.h(59): catastrophic error: cannot open source file "cuda_runtime.h"
- static void Main(string[] args)
- {
- var rtc = new CudaRuntimeCompiler(GetKernel(), "Test");
- string[] compileArgs = new string[0];
- try
- {
- rtc.Compile(compileArgs);
- }
- catch (Exception e)
- {
- string log = rtc.GetLogAsString();
- Console.WriteLine($"Exception: {e.Message}");
- Console.WriteLine(log);
- Console.ReadKey();
- }
- rtc.Dispose();
- }
- static string GetKernel()
- {
- return File.ReadAllText("Kernel.c");
- }
- #include <curand.h>
- extern "C"
- {
- __global__ void DoNothing()
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement