载入中...
搜索中...
未找到
OnnxGpgpu.cpp 文件参考
#include <algorithm>
#include <chrono>
#include <cstdlib>
#include <iostream>
#include <map>
#include <unordered_map>
#include "common/Subscription.h"
#include "gpgpu/ComputeShader.h"
#include "gpgpu/Gpgpu.h"
#include "gpgpu/GpuBuffer.h"
#include "gpgpu/Sequence.h"
#include "graphics/Graphics.h"
#include "tensor/OnnxCompiler.h"
#include "tensor/OnnxCompute.h"

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::tensor
 

函数

EVENGINE_API_DOMAINS Result< std::unique_ptr< OnnxCompute > > eve::tensor::createOnnxGpuCompute (uint32_t compilerWorkers=4)
 Create a reusable GPU session for the active engine Gpgpu Vulkan device, or an error.
 

变量说明

◆ active

bool active = true

在文件 OnnxGpgpu.cpp 第 52 行定义.

◆ allocatedBytes

size_t allocatedBytes = 0

在文件 OnnxGpgpu.cpp 第 60 行定义.

◆ allocationMs

double allocationMs = 0

在文件 OnnxGpgpu.cpp 第 57 行定义.

◆ bindings

◆ buffer

std::unique_ptr<gpgpu::GpuBuffer> buffer

在文件 OnnxGpgpu.cpp 第 26 行定义.

被这些函数引用 eve::particles::ParticleEmitterPool::acquire(), eve::tensor::GpuProgram::Impl::alloc(), eve::level_editing::EditorHistory::applyLastToBuffer(), eve::level_editing::EditorHistory::applyLastToBufferChecked(), eve::gpgpu::ShaderSystem::attachBuffer(), eve::gpgpu::VulkanComputeShader::bindBuffer(), eve::gpgpu::WebGpuComputeShader::bindBuffer(), eve::particles::ParticleEmitter::currentSimulationTick(), eve::particles_graphics_editing::ParticleEmitterOffscreenPresenter::draw(), eve::graphics::vulkan::Graphics::drawDeferredLighting(), eve::graphics::vulkan::Graphics::drawPrimitiveScene(), eve::level_editing::Brush::eraseAt(), eve::Exception::Exception(), eve::cmd::sdk::fileSha256(), eve::level_editing::Brush::floodFill(), eve::particles::ParticleEmitter::getConfigReloadObservation(), eve::filesystem::Filesystem::getExecutablePath(), eve::graphics::vulkan::Graphics::gpuDrivenCullBegin(), eve::dev::PlayTraceBuffer::instance(), eve::particles::Particles::newEmitterFromFile(), eve::level_editor::LevelEditorModule::newTarget(), eve::level_editing::Brush::paintAt(), eve::level_editing::Brush::paintLine(), eve::level_editing::Brush::paintRect(), eve::asset_import::prepareUnityNativeMesh(), eve::level_editing::Brush::previewAt(), eve::level_editing::Brush::previewLine(), eve::level_editing::Brush::previewRect(), eve::graphics::vulkan::Graphics::replaceMeshShaderResources(), eve::combat::CombatCancelResolver::setBuffer(), eve::dev::sqValueToJson(), eve::graphics::raytracing::DeviceAddressBuffer::steal(), eve::climbing::ClimbingProbeSystem::step(), eve::Value::toString(), eve::graphics::vulkan::Graphics::updateTextureFromResidentRgba8() , 以及 eve::gpgpu::webgpuSequenceRecordUpload().

◆ cachedBytes

size_t cachedBytes = 0

在文件 OnnxGpgpu.cpp 第 60 行定义.

◆ capacity

size_t capacity = 0

在文件 OnnxGpgpu.cpp 第 27 行定义.

◆ compilation

std::future<onnx_detail::CompiledProgram> compilation

在文件 OnnxGpgpu.cpp 第 33 行定义.

◆ compiledShaders

size_t compiledShaders = 0

在文件 OnnxGpgpu.cpp 第 58 行定义.

◆ compiler

onnx_detail::CompilerQueue compiler

在文件 OnnxGpgpu.cpp 第 45 行定义.

被这些函数引用 eve::script::ScriptCompiler::compileBuffer().

◆ compilerWorkers

uint32_t compilerWorkers = 4

在文件 OnnxGpgpu.cpp 第 253 行定义.

被这些函数引用 eve::tensor::createOnnxGpuCompute().

◆ compileTaskMs

double compileTaskMs = 0

在文件 OnnxGpgpu.cpp 第 47 行定义.

◆ compileWaitMs

double compileWaitMs = 0

在文件 OnnxGpgpu.cpp 第 47 行定义.

◆ dispatches

std::vector<PendingDispatch> dispatches

在文件 OnnxGpgpu.cpp 第 46 行定义.

◆ dispatchRecordMs

double dispatchRecordMs = 0

在文件 OnnxGpgpu.cpp 第 57 行定义.

◆ epoch

uint64_t epoch = 0

◆ freeBuffers

std::multimap<size_t, std::unique_ptr<gpgpu::GpuBuffer> > freeBuffers

在文件 OnnxGpgpu.cpp 第 61 行定义.

◆ gp

gpgpu::Gpgpu& gp

◆ groups

◆ milliseconds

◆ pending

std::vector<std::shared_ptr<DeviceBytes> > pending

在文件 OnnxGpgpu.cpp 第 54 行定义.

◆ persistentUploads

std::map<std::shared_ptr<const std::vector<uint8_t> >, std::shared_ptr<DeviceBytes>, std::owner_less<std::shared_ptr<const std::vector<uint8_t> > > > persistentUploads

在文件 OnnxGpgpu.cpp 第 50 行定义.

◆ pipelineMs

double pipelineMs = 0

在文件 OnnxGpgpu.cpp 第 47 行定义.

◆ program

ShaderEntry* program

在文件 OnnxGpgpu.cpp 第 37 行定义.

◆ queued

◆ readbackMs

double readbackMs = 0

在文件 OnnxGpgpu.cpp 第 57 行定义.

◆ resources

◆ retired

bool retired = false

在文件 OnnxGpgpu.cpp 第 252 行定义.

◆ run

◆ sequence

std::unique_ptr<gpgpu::Sequence> sequence

在文件 OnnxGpgpu.cpp 第 43 行定义.

被这些函数引用 eve::detail::EventLogValidator::accept(), eve::rpg::Battle::addActor(), eve::editor::EditorEventTimeline::append(), eve::pixelworld_streaming::decodeChunkBatchArchive(), eve::climbing::decodeClimbingPredictionDecision(), eve::climbing::decodeClimbingPredictionRequest(), eve::graphics::vulkan::Graphics::drawPrimitiveScene(), eve::game_event::GameEventLog::find(), eve::game_event::GameEventLog::find(), eve::rts::RTS::inspectFrameEvents(), eve::physics::detail::makePhysicsWorldPersistentId(), eve::scene_editing::makeSceneComponentSelection(), eve::gpgpu::ShaderSystem::recordDispatch(), eve::graphics::resolvePrimitiveStrokes3D(), eve::production::WorkQueue::restore(), eve::definitions::DefinitionRegistry::restoreJson(), eve::policyregistry::PolicyRegistry::restoreJson(), eve::level_editing::LevelFormatRegistry::save(), eve::game_event::EventConsumer::seek(), eve::game_event::EventConsumer::seek(), eve::settlement::SettlementPipeline::settle(), eve::settlement::SettlementPipeline::settleAtomic(), eve::VersionedRegistry< Key, Value, EventData, Compare >::State::swap(), eve::gpgpu::webgpuSequenceBegin(), eve::gpgpu::webgpuSequenceDestroy(), eve::gpgpu::webgpuSequencePoll(), eve::gpgpu::webgpuSequenceReady(), eve::gpgpu::webgpuSequenceRecordDispatch(), eve::gpgpu::webgpuSequenceRecordDownload(), eve::gpgpu::webgpuSequenceRecordUpload(), eve::gpgpu::webgpuSequenceStatus(), eve::gpgpu::webgpuSequenceSubmit(), eve::gpgpu::webgpuSequenceSubmitAsync(), eve::gpgpu::webgpuSequenceWait() , 以及 eve::filesystem::Filesystem::writeTextAtomic().

◆ shader

std::unique_ptr<gpgpu::ComputeShader> shader

在文件 OnnxGpgpu.cpp 第 34 行定义.

◆ shaderMs

double shaderMs = 0

在文件 OnnxGpgpu.cpp 第 57 行定义.

◆ shaders

std::unordered_map<std::string, ShaderEntry> shaders

在文件 OnnxGpgpu.cpp 第 44 行定义.

被这些函数引用 eve::asset_stylize::prepareMeshVfxPackage().

◆ size

size_t size = 0

在文件 OnnxGpgpu.cpp 第 27 行定义.

◆ start

Clock::time_point start = Clock::now()

在文件 OnnxGpgpu.cpp 第 20 行定义.

◆ started

Clock::time_point started = Clock::now()

在文件 OnnxGpgpu.cpp 第 59 行定义.

◆ stats

◆ uncommittedUploads

std::vector<std::shared_ptr<const std::vector<uint8_t> > > uncommittedUploads

在文件 OnnxGpgpu.cpp 第 51 行定义.

◆ uploadRecordMs

double uploadRecordMs = 0

在文件 OnnxGpgpu.cpp 第 57 行定义.

◆ uploads

std::map<std::shared_ptr<const std::vector<uint8_t> >, std::shared_ptr<DeviceBytes>, std::owner_less<std::shared_ptr<const std::vector<uint8_t> > > > uploads

在文件 OnnxGpgpu.cpp 第 50 行定义.

被这些函数引用 eve::pixelworld_graphics::PixelWorldAtlasRenderer::sync().

◆ waitMs

double waitMs = 0

在文件 OnnxGpgpu.cpp 第 57 行定义.