Skip to content

Commit

Permalink
clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
satyajandhyala committed Jul 18, 2024
1 parent b2c568f commit ae12127
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
5 changes: 1 addition & 4 deletions cmake/adjust_global_compile_flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
endif()

if (onnxruntime_ENABLE_WEBASSEMBLY_EXCEPTION_CATCHING)
if (onnxruntime_ENABLE_WEBASSEMBLY_MEMORY64)
# string(APPEND CMAKE_C_FLAGS " -fwasm-exceptions")
# string(APPEND CMAKE_CXX_FLAGS " -fwasm-exceptions")
else()
if (NOT onnxruntime_ENABLE_WEBASSEMBLY_MEMORY64)
string(APPEND CMAKE_C_FLAGS " -s DISABLE_EXCEPTION_CATCHING=0")
string(APPEND CMAKE_CXX_FLAGS " -s DISABLE_EXCEPTION_CATCHING=0")
endif()
Expand Down
4 changes: 2 additions & 2 deletions cmake/onnxruntime_webassembly.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ OrtClearBoundOutputs:_p,\
OrtReleaseBinding:_p,\
OrtGetLastError:_pp,\
JsepOutput:pp_p,\
JsepGetNodeN:pp,\
JsepGetNodeName:pp,\
JsepOutput:pp_p,\
jsepCopy:_pp_,\
jsepCopyAsync:_pp_,\
Expand All @@ -325,7 +325,7 @@ jsepDownload:_pp_")
"SHELL:-s ASYNCIFY=1"
"SHELL:-s ASYNCIFY_STACK_SIZE=65536"
"SHELL:-s ASYNCIFY_EXPORTS=['OrtRun']"
"SHELL:-s ASYNCIFY_IMPORTS=['Module.jsepCopy','Module.jsepCopyAsync,jsepDownload']"
"SHELL:-s ASYNCIFY_IMPORTS=['Module.jsepCopy','Module.jsepCopyAsync','Module.jsepDownload']"
)
set_target_properties(onnxruntime_webassembly PROPERTIES LINK_DEPENDS ${ONNXRUNTIME_ROOT}/wasm/pre-jsep.js)
endif()
Expand Down
3 changes: 1 addition & 2 deletions js/web/lib/wasm/jsep/backend-webgpu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ export class WebGpuBackend {
maxComputeWorkgroupSizeX: adapter.limits.maxComputeWorkgroupSizeX,
maxComputeWorkgroupSizeY: adapter.limits.maxComputeWorkgroupSizeY,
maxComputeWorkgroupSizeZ: adapter.limits.maxComputeWorkgroupSizeZ,
maxBindingsPerBindGroup: adapter.limits.maxBindingsPerBindGroup,
},
requiredFeatures,
};
Expand Down Expand Up @@ -450,7 +449,7 @@ export class WebGpuBackend {
const isPersistent = validatedOutputIndices[i] === -2;
const tensorView = (isTemporary || isPersistent) ?
createIntermediateOutput(outputs[i].dataType, outputs[i].dims) :
createKernelOutput(outputs[i].outputIndex || validatedOutputIndices[i], outputs[i].dataType, outputs[i].dims);
createKernelOutput(validatedOutputIndices[i], outputs[i].dataType, outputs[i].dims);
outputTensorViews.push(tensorView);
// if tensor view data is 0, it means the output is zero-sized tensor, and there is no GPU data for it.
if (tensorView.data === 0) {
Expand Down
1 change: 0 additions & 1 deletion js/web/lib/wasm/jsep/webgpu/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export interface GpuData {
export interface TensorInfo {
dims: readonly number[];
dataType: number;
outputIndex?: number;
}

export interface ProgramUniform {
Expand Down
2 changes: 0 additions & 2 deletions js/web/lib/wasm/wasm-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,6 @@ export interface OrtTrainingAPIs {
*/
export interface OrtWasmModule extends EmscriptenModule, OrtInferenceAPIs, Partial<OrtTrainingAPIs>,
Partial<JSEP.Module> {
HEAP64: BigInt64Array;
HEAPU64: BigUint64Array;
PTR_SIZE: number;
// #region emscripten functions
stackSave(): number;
Expand Down

0 comments on commit ae12127

Please sign in to comment.