Skip to content

Commit

Permalink
Sync diff with v1.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Aug 28, 2024
1 parent 16cdcdf commit feff055
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 1,173 deletions.
5 changes: 5 additions & 0 deletions js/node/script/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ if (ARCH !== 'x64' && ARCH !== 'ia32' && ARCH !== 'arm64' && ARCH !== 'arm') {
}
// --onnxruntime-build-dir=
const ONNXRUNTIME_BUILD_DIR = buildArgs['onnxruntime-build-dir'];
// --onnxruntime-generator=
const ONNXRUNTIME_GENERATOR = buildArgs['onnxruntime-generator'];
// --rebuild
const REBUILD = !!buildArgs.rebuild;
// --use_dml
Expand Down Expand Up @@ -59,6 +61,9 @@ const args = [
if (ONNXRUNTIME_BUILD_DIR && typeof ONNXRUNTIME_BUILD_DIR === 'string') {
args.push(`--CDONNXRUNTIME_BUILD_DIR=${ONNXRUNTIME_BUILD_DIR}`);
}
if (ONNXRUNTIME_GENERATOR && typeof ONNXRUNTIME_GENERATOR === 'string') {
args.push(`--CDONNXRUNTIME_GENERATOR=${ONNXRUNTIME_GENERATOR}`);
}
if (USE_DML) {
args.push('--CDUSE_DML=ON');
}
Expand Down
270 changes: 0 additions & 270 deletions onnxruntime/contrib_ops/cuda/sparse/sparse_attention_helper.h

This file was deleted.

16 changes: 0 additions & 16 deletions onnxruntime/contrib_ops/cuda/utils/dump_cuda_tensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,6 @@
#include "core/framework/ort_value.h"
#include "contrib_ops/cpu/utils/console_dumper.h"

#define DUMP_TENSOR_LEVEL 0 // change it to 1 or 2 if want to enable dumping for code not in generation.

#if DUMP_TENSOR_LEVEL > 0
#define DUMP_TENSOR_INIT() onnxruntime::contrib::cuda::transformers::CudaTensorConsoleDumper dumper
#define DUMP_TENSOR(...) dumper.Print(__VA_ARGS__)
#else
#define DUMP_TENSOR_INIT()
#define DUMP_TENSOR(...)
#endif

#if DUMP_TENSOR_LEVEL > 1
#define DUMP_TENSOR_D(...) dumper.Print(__VA_ARGS__)
#else
#define DUMP_TENSOR_D(...)
#endif

namespace onnxruntime {
namespace contrib {
namespace cuda {
Expand Down
Loading

0 comments on commit feff055

Please sign in to comment.