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
5 changes: 5 additions & 0 deletions packages/audiogen-ggml/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.25)

option(BUILD_TESTING "Build tests" OFF)
option(ENABLE_VULKAN "Enable Vulkan GPU acceleration" OFF)
option(ENABLE_CUDA "Enable CUDA GPU acceleration (needs nvcc on the build host)" OFF)

if(BUILD_TESTING)
list(APPEND VCPKG_MANIFEST_FEATURES "tests")
Expand All @@ -11,6 +12,10 @@ if(ENABLE_VULKAN)
list(APPEND VCPKG_MANIFEST_FEATURES "vulkan")
endif()

if(ENABLE_CUDA)
list(APPEND VCPKG_MANIFEST_FEATURES "cuda")
endif()

find_package(cmake-bare REQUIRED PATHS node_modules/cmake-bare)
find_package(cmake-vcpkg REQUIRED PATHS node_modules/cmake-vcpkg)

Expand Down
14 changes: 14 additions & 0 deletions packages/audiogen-ggml/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,20 @@
}
],
"features": {
"cuda": {
"description": "Enable CUDA GPU acceleration",
"dependencies": [
{
"name": "speech-cpp",
"version>=": "2026-08-24#2",
"default-features": false,
"features": [
"cuda"
],
"platform": "!(osx | ios | android)"
}
]
},
"tests": {
"description": "Build C++ unit tests",
"dependencies": [
Expand Down
Loading