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 63d5836
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/onnxruntime_unittests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ 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")
endif()

set(onnxruntime_test_framework_src_patterns
"${TEST_SRC_DIR}/framework/*.cc"
"${TEST_SRC_DIR}/framework/*.h"
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 63d5836

Please sign in to comment.