Compiler

struct Compiler : public kernel_launcher::ICompiler

Wrapper around std::shared_ptr<ICompiler>.

Public Functions

template<typename C>
inline Compiler(C &&compiler)

Construct an instance of Compiler around an instance of type C that should derive from ICompiler.

Template Parameters:

C – Type should derive from ICompiler.

virtual CudaModule compile(CudaContextHandle ctx, KernelDef def) const override

Compile the given kernel definition for the given CUDA context.

Parameters:
  • ctx – The CUDA context.

  • def – The kernel definition.