Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions backends/vulkan/runtime/api/containers/Tensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,13 +478,6 @@ vTensor::vTensor(
if (storage_type != utils::kBuffer) {
set_logical_limits(storage_.image_extents_);
}

if (dtype == vkapi::kHalf) {
VK_CHECK_COND(
api::context()->adapter_ptr()->supports_16bit_storage_buffers(),
"Half dtype is only available if the physical device supports float16 "
"storage buffers!");
}
}

// NOLINTNEXTLINE
Expand Down
2 changes: 2 additions & 0 deletions backends/vulkan/runtime/graph/ops/PrepackNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ api::StagingBuffer PrepackNode::create_staging_buffer(ComputeGraph* graph) {
void PrepackNode::encode(ComputeGraph* graph) {
api::Context* const context = graph->context();

context->check_device_capabilities(shader_);

vTensorPtr packed = graph->get_tensor(packed_);
api::StagingBuffer staging = create_staging_buffer(graph);

Expand Down
1 change: 0 additions & 1 deletion backends/vulkan/test/op_tests/utils/gen_computegraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,6 @@ def gen_op_check_fn(self) -> str:
op_check_fn = self.gen_decl(f"prepacked_check_{op_name}") + " {\n"

op_check_fn_body = ""
op_check_fn_body += self.gen_conditional_skips()
op_check_fn_body += self.gen_graph_build_code()
op_check_fn_body += self.gen_graph_exec_code()

Expand Down
Loading