Skip to content

Commit dd1f645

Browse files
authored
switch DGEMM unroll parameters for SkylakeX if DYNAMIC_ARCH
1 parent 2ae73a2 commit dd1f645

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

param.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,14 +1669,22 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
16691669
#else
16701670

16711671
#define SGEMM_DEFAULT_UNROLL_M 16
1672+
#ifndef DYNAMIC_ARCH
16721673
#define DGEMM_DEFAULT_UNROLL_M 16
1674+
#else
1675+
#define DGEMM_DEFAULT_UNROLL_M 4
1676+
#endif
16731677
#define QGEMM_DEFAULT_UNROLL_M 2
16741678
#define CGEMM_DEFAULT_UNROLL_M 8
16751679
#define ZGEMM_DEFAULT_UNROLL_M 4
16761680
#define XGEMM_DEFAULT_UNROLL_M 1
16771681

16781682
#define SGEMM_DEFAULT_UNROLL_N 4
1683+
#ifndef DYNAMIC_ARCH
16791684
#define DGEMM_DEFAULT_UNROLL_N 2
1685+
#else
1686+
#define DGEMM_DEFAULT_UNROLL_N 8
1687+
#endif
16801688
#define QGEMM_DEFAULT_UNROLL_N 2
16811689
#define CGEMM_DEFAULT_UNROLL_N 2
16821690
#define ZGEMM_DEFAULT_UNROLL_N 2

0 commit comments

Comments
 (0)