diff --git a/Projet/CODE/apm/Makefile b/Projet/CODE/apm/Makefile index cd5bc3dbd1829dc22ef6db78332a066e76a4ce6c..a605f6d616ad6f3a3e016ab5435e4966967d59f7 100644 --- a/Projet/CODE/apm/Makefile +++ b/Projet/CODE/apm/Makefile @@ -22,6 +22,12 @@ apm_omp: src/apm_omp.c apm_gpu: src/apm_gpu.cu $(NVCC) $(CFLAGS_CU) $(LDFLAGS) -o $@ $^ +# you need to create the file dna/test.fa +test: all + ./apm 0 dna/test.fa test123 + ./apm_omp 0 dna/test.fa test123 + ./apm_gpu 0 dna/test.fa test123 + .PHONY: clean clean: rm -rf apm apm_omp apm_gpu diff --git a/Projet/CODE/apm/src/apm_omp.c b/Projet/CODE/apm/src/apm_omp.c index 9ee23ed2a9825a2c211fa41e05ea666d8dc9a047..14fd2c63fc879726bf432ec841094e4f37abf3c2 100644 --- a/Projet/CODE/apm/src/apm_omp.c +++ b/Projet/CODE/apm/src/apm_omp.c @@ -230,7 +230,7 @@ main(int argc, char **argv) #endif distance = levenshtein(pattern[i], &buf[j], - size_pattern, column); + size_pattern, column); if (distance <= approx_factor) {