From 1d408e410d6cbf1c2ec1201195e8a137e00c13a9 Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Mon, 23 Dec 2024 21:38:42 +0800 Subject: [PATCH] rename --- src/backends/cuda/cuda_device.cpp | 16 ++++++++-------- src/backends/cuda/cuda_device.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/backends/cuda/cuda_device.cpp b/src/backends/cuda/cuda_device.cpp index 4e7019089..fc80d6d01 100644 --- a/src/backends/cuda/cuda_device.cpp +++ b/src/backends/cuda/cuda_device.cpp @@ -545,11 +545,11 @@ template return ptx_data; } -ShaderCreationInfo CUDADevice::_create_shader(luisa::string name, - const string &source, const ShaderOption &option, - luisa::span nvrtc_options, - const CUDAShaderMetadata &expected_metadata, - luisa::vector bound_arguments) noexcept { +ShaderCreationInfo CUDADevice::_load_or_compile_shader(luisa::string name, + const string &source, const ShaderOption &option, + luisa::span nvrtc_options, + const CUDAShaderMetadata &expected_metadata, + luisa::vector bound_arguments) noexcept { // generate a default name if not specified auto uses_user_path = !name.empty(); @@ -786,9 +786,9 @@ ShaderCreationInfo CUDADevice::create_shader(const ShaderOption &option, Functio } return t; }(), }; - return _create_shader(option.name, scratch.string(), - option, nvrtc_options, - metadata, std::move(bound_arguments)); + return _load_or_compile_shader(option.name, scratch.string(), + option, nvrtc_options, + metadata, std::move(bound_arguments)); } ShaderCreationInfo CUDADevice::create_shader(const ShaderOption &option, const ir::KernelModule *kernel) noexcept { diff --git a/src/backends/cuda/cuda_device.h b/src/backends/cuda/cuda_device.h index a492205e6..b6deafb94 100644 --- a/src/backends/cuda/cuda_device.h +++ b/src/backends/cuda/cuda_device.h @@ -116,7 +116,7 @@ class CUDADevice final : public DeviceInterface { #endif private: - [[nodiscard]] ShaderCreationInfo _create_shader(luisa::string name, + [[nodiscard]] ShaderCreationInfo _load_or_compile_shader(luisa::string name, const string &source, const ShaderOption &option, luisa::span nvrtc_options, const CUDAShaderMetadata &expected_metadata,