Hello !

Despite the recent patch applied in version 5.1.11.dfgs-4,
the bug seems to be still present on sid/amd64 :

    uname -a
        Linux mobydick 2.6.32-5-amd64 #1 SMP Wed Jan 12 03:40:32 UTC 2011 
x86_64 GNU/Linux

    apt-cache policy libptscotch-dev
    libptscotch-dev:
      Installé : 5.1.11.dfsg-4
      Candidat : 5.1.11.dfsg-4
     Table de version :
     *** 5.1.11.dfsg-4 0
        500 http://ftp.fr.debian.org/debian/ sid/main amd64 Packages
        100 /var/lib/dpkg/status


    mpic++ -o ptscotch_test ptscotch_test.cpp -DSCOTCH_PTSCOTCH 
-I/usr/include/scotch -lptscotch -lptscotcherr
    ./ptscotch_test
        (0): ERROR: SCOTCH_dgraphInit: linking with both libScotch and 
libPTScotch is not allowed
        MPI implementation is not thread-safe:
        SCOTCH should be compiled without SCOTCH_PTHREAD

Yet, scotch library is unusable...
Any idea to get free from this problem ? 

I put back the ptscotch_test.cpp for completness.
Please, see previous mails related to this bug for details.

Thank you for your help,

Pierre
-- 
pierre.saram...@imag.fr
Directeur de Recherche CNRS
Laboratoire Jean Kuntzmann, Grenoble, France
http://www-ljk.imag.fr/membres/Pierre.Saramito
#include <mpi.h>
#include <ptscotch.h>
#include <iostream>
#include <cstdlib>

int main() {
  int provided;
  SCOTCH_Dgraph dgrafdat;

  MPI_Init_thread(0, 0, MPI_THREAD_MULTIPLE, &provided);

  if (SCOTCH_dgraphInit(&dgrafdat, MPI_COMM_WORLD) != 0) {
    if (MPI_THREAD_MULTIPLE > provided) {
      std::cout << "MPI implementation is not thread-safe:" << std::endl;
      std::cout << "SCOTCH should be compiled without SCOTCH_PTHREAD"
<< std::endl;
      exit(1);
    }
  }
  else {
    SCOTCH_dgraphExit(&dgrafdat);
  }

  MPI_Finalize();

  return 0;
}

Reply via email to