Table of Contents

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

message string

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

message string
innerException Exception

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

message string
innerException Exception
compilationErrors string
kernelSource string
targetPlatform string

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

message string
compilationErrors string
kernelSource string
targetPlatform string

Properties

CompilationErrors

Gets the compilation error details.

public string? CompilationErrors { get; }

Property Value

string

KernelSource

Gets the kernel source that failed to compile.

public string? KernelSource { get; }

Property Value

string

TargetPlatform

Gets the target platform.

public string? TargetPlatform { get; }

Property Value

string