Deep.Net


Compile

Namespace: SymTensor.Compiler.Cuda

Nested types and modules

TypeDescription
ModCacheKey

Functions and values

Function or valueDescription
codeDumpCnt
Signature: int

code files writted so far

compileDirRoot
Signature: string
cppModCache
Signature: DiskMap<ModCacheKey,byte []>
cppModCacheDir
Signature: string
dumpCode code
Signature: code:string -> unit

writes code to a file

hostCompilerDir
Signature: string
krnlPtxCache
Signature: DiskMap<ModCacheKey,byte []>
krnlPtxCacheDir
Signature: string
loadCppCode modCode funcDelegates
Signature: modCode:string -> funcDelegates:Map<string,Type> -> Map<string,Delegate> * IntPtr * string

Compiles the given CUDA C++ device/host code into a module, loads it and returns functions objects for the specified C function names.

loadKernelCode modCode krnlNames
Signature: modCode:string -> krnlNames:seq<string> -> Map<string,CudaKernel> * CUmodule * string

Compiles the given CUDA device code into a CUDA module, loads and jits it and returns ManagedCuda.CudaKernel objects for the specified kernel names.

prepareCompileDir code
Signature: code:string -> string * string * Map<string,byte list>

prepares a compile directory

removeCompileDir compileDir
Signature: compileDir:string -> unit

removes a compile directory

unloadCppCode libHndl
Signature: libHndl:IntPtr -> unit

unloads previously loaded CUDA C++ code

unloadCudaCode cuMod
Signature: cuMod:CUmodule -> unit

unloads previously loaded CUDA kernel code

Fork me on GitHub