载入中...
搜索中...
未找到
eve::tensor::GpuProgram类 参考

GPU execution of a compiled tensor Graph via generated compute shaders. 更多...

#include <GpuBackend.h>

struct  Impl
 

Public 成员函数

 ~GpuProgram ()
 
std::vector< float > run (const std::vector< const float * > &feeds) const
 feeds[slot] must point to placeholderSize(slot) floats. Returns the output buffer.
 

静态 Public 成员函数

static GpuProgramtryBuild (const Graph &graph, const OptimizedGraph &opt, int outputNode)
 

详细描述

GPU execution of a compiled tensor Graph via generated compute shaders.

Built once per CompiledFunction (shapes are static at compile time):

  • every fused group is lowered by KernelGen into a fully specialized GLSL kernel (shapes baked as constants, no per-dispatch shape work);
  • a static memory plan reuses arena buffers whenever node lifetimes don't overlap (AITemplate-style memory planning);
  • rank-2 matmuls are autotuned between a naive thread-per-output kernel and a shared-memory 16x16 tiled kernel.

tryBuild() never throws: it returns nullptr when Vulkan/gpgpu isn't available or a group cannot be lowered, in which case the caller falls back to the CPU interpreter.

在文件 GpuBackend.h26 行定义.

构造及析构函数说明

◆ ~GpuProgram()

eve::tensor::GpuProgram::~GpuProgram ( )

在文件 GpuBackend.cpp166 行定义.

成员函数说明

◆ run()

◆ tryBuild()


该类的文档由以下文件生成: