SciLifeLab / facs

Fast and Accurate Classification of Sequences using Bloom filters
http://facs.scilifelab.se/
Other
16 stars 9 forks source link

add the 'lost' mpi_bloom.h #130

Closed tzcoolman closed 10 years ago

tzcoolman commented 10 years ago

First synchronize from scilifelab/facs, then add mpi_bloom.h head files. Should be working by now.

guillermo-carrasco commented 10 years ago

After saving the file:

(master)guilc@milou-b:~/repos/facs (master)$ make mpi
cd facs; make; make mpi
make[1]: Entering directory `/pica/h1/guilc/repos/facs/facs'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/pica/h1/guilc/repos/facs/facs'
make[1]: Entering directory `/pica/h1/guilc/repos/facs/facs'
Make sure you have MPI support on your cluster hint: module load openmpi
#mpicc -c *.c -O3 -Wall -g -DNODEBUG -fopenmp -D_FILE_OFFSET_BITS=64 -D_LARGE_FILE -lm -lz
#mpicc -c mpi_decon.c -O3 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILE
#mpicc -o mpi_decon mpi_decon.o bloom.o suggestions.o lookup3.o  -lm -O3 -Wall -g -DNODEBUG -fopenmp -D_FILE_OFFSET_BIT
S=64 -D_LARGE_FILE
mpicc -c mpi_bloom.c -O3 -Wall -g -DNODEBUG -fopenmp -D_FILE_OFFSET_BITS=64 -D_LARGE_FILE
mpi_bloom.c:48:1: warning: return type defaults to ‘int’ [-Wreturn-type]
 main (int argc, char **argv)
 ^
mpi_bloom.c: In function ‘main’:
mpi_bloom.c:139:3: warning: implicit declaration of function ‘make_list’ [-Wimplicit-function-declaration]
   F_set *File_head = make_list (bloom_filter, NULL);
   ^
mpi_bloom.c:139:22: warning: initialization makes pointer from integer without a cast [enabled by default]
   F_set *File_head = make_list (bloom_filter, NULL);
                      ^
mpi_bloom.c:186:4: error: too few arguments to function ‘report’
    char *result =  report(File_head, query, report_fmt, target_path, timestamp, prob_suggestion(bl_2->k_mer));
    ^
In file included from mpi_bloom.c:23:0:
query.h:11:14: note: declared here
 extern char *report(F_set * File_head, char* query, char* fmt, char* prefix, char* start_timestamp, double prob, int t
hreads);
              ^
mpi_bloom.c:58:15: warning: unused variable ‘exit_sign’ [-Wunused-variable]
   int opt=0,  exit_sign = 0;
               ^
make[1]: *** [mpi] Error 1
make[1]: Leaving directory `/pica/h1/guilc/repos/facs/facs'
make: *** [mpi] Error 2
tzcoolman commented 10 years ago

@guillermo-carrasco Hi Guillermo, I fixed the issue according to the err msg you provided. But sadly my MAC doesn't have openmpi or mpich library so there is no way for me to test it. Is it possible to apply either on MAC?

guillermo-carrasco commented 10 years ago

I am trying in on Uppmax, so I don't know about Mac.

It works now, I had to load:

module load openmpi
module load intelmpi/5.0