diff --git a/align.c b/align.c index 01946e4..374d607 100644 --- a/align.c +++ b/align.c @@ -364,7 +364,7 @@ static void mm_align_pair(void *km, const mm_mapopt_t *opt, int qlen, const uint else if (opt->q == opt->q2 && opt->e == opt->e2) ksw_extz2_sse(km, qlen, qseq, tlen, tseq, 5, mat, opt->q, opt->e, w, zdrop, end_bonus, flag, ez); else{ -#ifdef ALIGN_AVX +#ifdef ALIGN_AVX && (__AVX512BW__ || __AVX2__) #ifdef __AVX512BW__ ksw_extd2_avx512(km, qlen, qseq, tlen, tseq, 5, mat, opt->q, opt->e, opt->q2, opt->e2, w, zdrop, end_bonus, flag, ez); #elif __AVX2__ diff --git a/chain.c b/chain.c index 94e9be0..ef8509f 100644 --- a/chain.c +++ b/chain.c @@ -68,7 +68,7 @@ mm128_t *mm_chain_dp(int max_dist_x, int max_dist_y, int bw, int max_skip, int m t = (int32_t*)kmalloc(km, n * 4); v = (int32_t*)kmalloc(km, n * 4); memset(t, 0, n * 4); -#if VECTORIZED_CHAINING +#if VECTORIZED_CHAINING && (__AVX512BW__ || __AVX2__) anchor_t* anchors = (anchor_t*)malloc(n* sizeof(anchor_t)); for (i = 0; i < n; ++i) { uint64_t ri = a[i].x;