Skip to content

avx2 #6

Description

@jianshu93

Dear team,

It seems avx2 and avx512 did not work:

java -jar generator.jar -M 2 -I -3 -G -5 -a avx2 --semi -d ./ --banded

mv generator/align_core.c original/BGSA_AVX2/

make

icc -qopenmp -O3 global.c file.c thread.c align_core.c cal_avx.c main.c -o aligner -lpthread
align_core.c(65): error: identifier "threshold" is undefined
int h_threshold = threshold + subject_len - query_len;
^

align_core.c(103): error: identifier "cmp_result_t" is undefined
cmp_result_t cmp_result;
^

align_core.c(131): error: identifier "result_mask" is undefined
if(cmp_result == result_mask) {
^

align_core.c(133): error: identifier "MAX_ERROR" is undefined
score[score_index + i] = MAX_ERROR;
^

align_core.c(142): error: identifier "batch_size" is undefined
int batch_count = rest_length / batch_size;
^

align_core.c(168): error: identifier "result_mask" is undefined
if(cmp_result == result_mask) {
^

align_core.c(170): error: identifier "MAX_ERROR" is undefined
score[score_index + i] = MAX_ERROR;
^

align_core.c(200): error: identifier "result_mask" is undefined
if(cmp_result == result_mask) {
^

align_core.c(202): error: identifier "MAX_ERROR" is undefined
score[score_index + i] = MAX_ERROR;
^

align_core.c(221): error: identifier "result_mask" is undefined
if(cmp_result == result_mask) {
^

align_core.c(223): error: identifier "MAX_ERROR" is undefined
score[score_index + i] = MAX_ERROR;
^

align_core.c(249): error: identifier "avx_result_t" is undefined
avx_result_t * vec = ((avx_result_t *) & min_err);
^

align_core.c(249): error: identifier "vec" is undefined
avx_result_t * vec = ((avx_result_t *) & min_err);
^

align_core.c(249): error: expected an expression
avx_result_t * vec = ((avx_result_t *) & min_err);
^

align_core.c(249): error: mixed simd-scalar operation not allowed
avx_result_t * vec = ((avx_result_t *) & min_err);
^

compilation aborted for align_core.c (code 2)
make: *** [aligner] Error 2

Any idea why?

thanks,

Jianshu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions