Class CompilationException
- Namespace
- DotCompute.Abstractions
- Assembly
- DotCompute.Abstractions.dll
Exception thrown when kernel compilation fails.
public class CompilationException : AcceleratorException, ISerializable
- Inheritance
-
CompilationException
- Implements
- Inherited Members
Constructors
CompilationException()
Initializes a new instance of the CompilationException class.
public CompilationException()
CompilationException(string)
Initializes a new instance of the CompilationException class with a specified error message.
public CompilationException(string message)
Parameters
messagestring
CompilationException(string, Exception)
Initializes a new instance of the CompilationException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public CompilationException(string message, Exception innerException)
Parameters
CompilationException(string, Exception, string?, string?, string?)
Initializes a new instance of the CompilationException class with detailed compilation information and inner exception.
public CompilationException(string message, Exception innerException, string? compilationErrors = null, string? kernelSource = null, string? targetPlatform = null)
Parameters
messagestringinnerExceptionExceptioncompilationErrorsstringkernelSourcestringtargetPlatformstring
CompilationException(string, string?, string?, string?)
Initializes a new instance of the CompilationException class with detailed compilation information.
public CompilationException(string message, string? compilationErrors = null, string? kernelSource = null, string? targetPlatform = null)
Parameters
Properties
CompilationErrors
Gets the compilation error details.
public string? CompilationErrors { get; }
Property Value
KernelSource
Gets the kernel source that failed to compile.
public string? KernelSource { get; }
Property Value
TargetPlatform
Gets the target platform.
public string? TargetPlatform { get; }