Skip to content

Commit

Permalink
[js/node] gpuMemLimit only useful to be bigint
Browse files Browse the repository at this point in the history
  • Loading branch information
nomagick committed Dec 31, 2024
1 parent e03f545 commit f8cf9a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/common/lib/inference-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export declare namespace InferenceSession {
export interface CudaExecutionProviderOption extends ExecutionProviderOption {
readonly name: 'cuda';
deviceId?: number;
gpuMemLimit?: number;
gpuMemLimit?: bigint;

/**
* Arena extend strategy. See
Expand Down
2 changes: 1 addition & 1 deletion js/node/src/session_options_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void ParseExecutionProviders(const Napi::Array epList, Ort::SessionOptions& sess
}
if (obj.Has("gpuMemLimit")) {
gpuMemLimit = static_cast<size_t>(
obj.Get("gpuMemLimit").As<Napi::Number>().Uint32Value());
obj.Get("gpuMemLimit").As<Napi::BigInt>().Uint64Value());
}
#endif
#ifdef USE_COREML
Expand Down

0 comments on commit f8cf9a3

Please sign in to comment.