Class CudaLinker
A pending JIT linker invocation.
Inheritance
Implements
Inherited Members
Namespace: ManagedCuda
Assembly: ManagedCuda.dll
Syntax
public class CudaLinker : IDisposable
Constructors
| Improve this Doc View SourceCudaLinker()
Creates a pending JIT linker invocation.
Declaration
public CudaLinker()
CudaLinker(CudaJitOptionCollection)
Creates a pending JIT linker invocation.
Declaration
public CudaLinker(CudaJitOptionCollection options)
Parameters
Type | Name | Description |
---|---|---|
CudaJitOptionCollection | options | Collection of linker and compiler options |
Methods
| Improve this Doc View SourceAddData(Byte[], CUJITInputType, String, CudaJitOptionCollection)
Add an input to a pending linker invocation.
Declaration
public void AddData(byte[] data, CUJITInputType type, string name, CudaJitOptionCollection options)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | The input data. PTX must be NULL-terminated. |
CUJITInputType | type | The type of the input data. |
System.String | name | An optional name for this input in log messages. |
CudaJitOptionCollection | options | Collection of linker and compiler options |
AddData(Stream, CUJITInputType, String, CudaJitOptionCollection)
Add an input to a pending linker invocation.
Declaration
public void AddData(Stream data, CUJITInputType type, string name, CudaJitOptionCollection options)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | data | The input data. PTX must be NULL-terminated. |
CUJITInputType | type | The type of the input data. |
System.String | name | An optional name for this input in log messages. |
CudaJitOptionCollection | options | Collection of linker and compiler options |
AddFile(String, CUJITInputType, CudaJitOptionCollection)
Add an input to a pending linker invocation.
Declaration
public void AddFile(string filename, CUJITInputType type, CudaJitOptionCollection options)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | Path to the input file. |
CUJITInputType | type | The type of the input data. |
CudaJitOptionCollection | options | Collection of linker and compiler options |
Complete()
Complete a pending linker invocation.
Completes the pending linker action and returns the cubin image for the linked device code, which can be used with ::cuModuleLoadData.
Declaration
public byte[] Complete()
Returns
Type | Description |
---|---|
System.Byte[] |
Dispose()
Dispose
Destroys state for a JIT linker invocation.
Declaration
public void Dispose()
Dispose(Boolean)
For IDisposable.
Destroys state for a JIT linker invocation.
Declaration
protected virtual void Dispose(bool fDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | fDisposing |
Finalize()
For dispose
Declaration
protected void Finalize()