Skip to content

Commit

Permalink
Fix Arm64EC build for test_q4qdq.cpp (#18523)
Browse files Browse the repository at this point in the history
### Description
Fix ifdef guards in test_q4qdq.cpp to exclude code blocks intended only
for native x64 compilation instead of x64 + Arm64EC.
  • Loading branch information
mcfi authored Jan 15, 2024
1 parent 922a2f0 commit a97199c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onnxruntime/test/mlas/unittest/test_q4qdq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Module Name:
#include "test_util.h"
#include "mlas_q4.h"

#if (defined(_M_AMD64) || defined(__x86_64__))
#if ((defined(_M_AMD64) && !defined(_M_ARM64EC)) || defined(__x86_64__))

/**
* @brief For testing purpose,
Expand Down Expand Up @@ -93,7 +93,7 @@ class MlasQ4dqTest : public MlasTestBase {
<< K << "] QType: " << qtype;
}

#if (defined(_M_AMD64) || defined(__x86_64__))
#if ((defined(_M_AMD64) && !defined(_M_ARM64EC)) || defined(__x86_64__))

/* Test MlasBlkQ4DequantSgemmPackB, make sure we can reuse SGEMM kernel as it rearrange B the same way as sgemm pack B*/
const size_t AlignedN = (N + 15) & ~15;
Expand Down

0 comments on commit a97199c

Please sign in to comment.