From baa9a9ab6784ae8e1c9d2a540dd1ff68d60aa473 Mon Sep 17 00:00:00 2001 From: "nicolas.marie" <nicolas.marie@ensiie.eu> Date: Thu, 21 Dec 2023 16:17:12 +0100 Subject: [PATCH] add make test --- Projet/CODE/apm/Makefile | 6 ++++++ Projet/CODE/apm/src/apm_omp.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Projet/CODE/apm/Makefile b/Projet/CODE/apm/Makefile index cd5bc3d..a605f6d 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 9ee23ed..14fd2c6 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) { -- GitLab