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
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ include(CheckIncludeFileCXX)

set(SOVERSION 1)

if (MSVC)
add_compile_options(/utf-8)
endif()

#set(CMAKE_WARN_DEPRECATED YES)
set(CMAKE_WARN_UNUSED_CLI YES)

Expand Down
2 changes: 1 addition & 1 deletion ggml/src/ggml-vulkan/vulkan-shaders/soft_max.comp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ shared FLOAT_TYPE vals[BLOCK_SIZE];
void soft_max(uint num_iters) {
const uint tid = gl_LocalInvocationID.x;
const uint rowx = gl_WorkGroupID.z * 262144 + gl_WorkGroupID.y * 512 + gl_WorkGroupID.x;
const uint rowy = rowx % p.KY;
const uint rowy = (p.KY > 0) ? (rowx % p.KY) : 0;

if (rowx >= p.nrows_x) {
return;
Expand Down
9 changes: 9 additions & 0 deletions src/openvino/whisper-openvino-encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "ggml.h"
#include <openvino/openvino.hpp>
#include <iostream>
#include <fstream>

struct whisper_openvino_context {
ov::InferRequest inferRequest;
Expand All @@ -28,7 +29,15 @@ struct whisper_openvino_context * whisper_openvino_init(const char* path_model,
// routine. This speeds up calls to compile_model for successive runs.
core.set_property(ov::cache_dir(cache_dir));
}
// OpenVINOのバージョン情報を出力
std::cout << "OpenVINO version: " << ov::get_openvino_version() << std::endl;

// 利用可能なデバイスを出力
std::cout << "Available devices: ";
for (const auto& device : core.get_available_devices()) {
std::cout << device << " ";
}
std::cout << std::endl;
//Read the OpenVINO encoder IR (.xml/.bin) from disk, producing an ov::Model object.
std::shared_ptr<ov::Model> model = core.read_model(path_model);

Expand Down