Skip to content

Commit

Permalink
Fix vulkan shader fp32 name
Browse files Browse the repository at this point in the history
  • Loading branch information
0cc4m committed Oct 14, 2023
1 parent 35b10d1 commit e90a651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ggml-vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ static vk_pipeline ggml_vk_create_pipeline_from_file(const std::string& name, co
std::cerr << "ggml_vk_create_pipeline_from_file(" << path << ", " << entrypoint << ", " << parameter_count << ", " << push_constant_size << ", (" << wg_denoms[0] << "," << wg_denoms[1] << "," << wg_denoms[2] << "), specialization_constants, " << align << ")" << std::endl;
#endif

const std::string path = "vk_shaders/" + name + (vk_device.fp16 ? "" : "_f32") + ".comp";
const std::string path = "vk_shaders/" + name + (vk_device.fp16 ? "" : "_fp32") + ".comp";

std::vector<char> matmul_shader_contents;
if (std::ifstream shader_file{ path, std::ios::binary | std::ios::ate }) {
Expand Down

0 comments on commit e90a651

Please sign in to comment.