Class CudaRuntimeCompiler
Cuda runtime compiler
Inheritance
System.Object
CudaRuntimeCompiler
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ManagedCuda.NVRTC
Assembly: NVRTC.dll
Syntax
public class CudaRuntimeCompiler : IDisposable
Constructors
| Improve this Doc View SourceCudaRuntimeCompiler(String, String)
Creates a runtime compiler instance.
Declaration
public CudaRuntimeCompiler(string src, string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | src | CUDA program source. |
System.String | name | CUDA program name. name can be NULL; "default_program" is used when name is NULL. |
CudaRuntimeCompiler(String, String, String[], String[])
Creates a runtime compiler instance.
Declaration
public CudaRuntimeCompiler(string src, string name, string[] headers, string[] includeNames)
Parameters
Type | Name | Description |
---|---|---|
System.String | src | CUDA program source. |
System.String | name | CUDA program name. name can be NULL; "default_program" is used when name is NULL. |
System.String[] | headers | Name of each header by which they can be included in the CUDA program source. |
System.String[] | includeNames | Sources of the headers. |
Methods
| Improve this Doc View SourceAddNameExpression(String)
Declaration
public void AddNameExpression(string nameExpression)
Parameters
Type | Name | Description |
---|---|---|
System.String | nameExpression |
Compile(String[])
Declaration
public void Compile(string[] options)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | options |
Dispose()
Dispose
Declaration
public void Dispose()
Dispose(Boolean)
For IDisposable
Declaration
protected virtual void Dispose(bool fDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | fDisposing |
Finalize()
For dispose
Declaration
protected void Finalize()
GetLog()
Declaration
public byte[] GetLog()
Returns
Type | Description |
---|---|
System.Byte[] |
GetLogAsString()
Declaration
public string GetLogAsString()
Returns
Type | Description |
---|---|
System.String |
GetLoweredName(String)
Declaration
public string GetLoweredName(string nameExpression)
Parameters
Type | Name | Description |
---|---|---|
System.String | nameExpression |
Returns
Type | Description |
---|---|
System.String |
GetPTX()
Declaration
public byte[] GetPTX()
Returns
Type | Description |
---|---|
System.Byte[] |
GetPTXAsString()
Declaration
public string GetPTXAsString()
Returns
Type | Description |
---|---|
System.String |
GetVersion()
Declaration
public static Version GetVersion()
Returns
Type | Description |
---|---|
System.Version |
Implements
System.IDisposable