Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webgpu backend #585

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
use the wgpu.h from the distribution
  • Loading branch information
audiovention committed Oct 17, 2023
commit 7e28f12bef31894f2f43379a510ca136b36643d8
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ endif()
if (GGML_WGPU)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../../webgpu ${CMAKE_CURRENT_BINARY_DIR}/webgpu)

set(GGML_WGPU_SOURCES ggml-wgpu.c ggml-wgpu.h wgpu.h framework.h framework.c)
set(GGML_WGPU_SOURCES ggml-wgpu.c ggml-wgpu.h framework.h framework.c)

add_compile_definitions(GGML_USE_WGPU)
#add_compile_definitions(GGML_WGPU_NDEBUG)
Expand Down
2 changes: 1 addition & 1 deletion src/framework.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef FRAMEWORK_H
#define FRAMEWORK_H

#include "wgpu.h"
#include "webgpu/wgpu.h"
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
Expand Down
214 changes: 0 additions & 214 deletions src/wgpu.h

This file was deleted.