Skip to content

Commit

Permalink
strange compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
chenfucn committed Mar 14, 2024
1 parent f71cfa6 commit 44a95f8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
7 changes: 7 additions & 0 deletions cmake/onnxruntime_unittests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,13 @@ if(NOT onnxruntime_MINIMAL_BUILD AND NOT onnxruntime_REDUCED_OPS_BUILD)
"${TEST_SRC_DIR}/optimizer/*.h"
)

if (MSVC AND ((onnxruntime_target_platform STREQUAL "ARM64") OR (onnxruntime_target_platform STREQUAL "ARM64EC")))
set_source_files_properties("${TEST_SRC_DIR}/optimizer/graph_transform_test.cc" PROPERTIES COMPILE_FLAGS "/bigobj")
list(REMOVE_ITEM onnxruntime_test_optimizer_src
"${TEST_SRC_DIR}/optimizer/gpu_op_prepack_test.cc"
)
endif()

set(onnxruntime_test_framework_src_patterns
"${TEST_SRC_DIR}/framework/*.cc"
"${TEST_SRC_DIR}/framework/*.h"
Expand Down
2 changes: 1 addition & 1 deletion onnxruntime/contrib_ops/cuda/quantization/matmul_nbits.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Status MatMulNBits<T>::ComputeInternal(OpKernelContext* ctx) const {
"Internal Error: Prepacked gemm does not support zero points of type T. Fix the prepacking logic!");
return PrepackedGemm(
static_cast<cudaStream_t>(ctx->GetComputeStream()->GetHandle()),
helper.M(), a, b, scales, zero_points, Y);
static_cast<int>(helper.M()), a, b, scales, zero_points, Y);
}

const auto* a_data = a->Data<T>();
Expand Down
10 changes: 10 additions & 0 deletions onnxruntime/core/mickey/blk_q4/f16_gemm_sm80.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,19 @@

#pragma once

// Ignore CUTLASS warning C4100: unreferenced formal parameter
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable : 4100)
#endif

#include "cutlass/cutlass.h"
#include "cutlass_ext/q4gemm/device/quantb_gemm.h"

#if defined(_MSC_VER)
#pragma warning(pop)
#endif

namespace onnxruntime {
namespace cuda {

Expand Down

0 comments on commit 44a95f8

Please sign in to comment.