Accéder au contenu.
Menu Sympa

starpu-devel - Re: [starpu-devel] Subject: Feedback on ImportError when importing "starpu" in Python

Objet : Developers list for StarPU

Archives de la liste

Re: [starpu-devel] Subject: Feedback on ImportError when importing "starpu" in Python


Chronologique Discussions 
  • From: 高家隆 <gaojialong@nudt.edu.cn>
  • To: "Nathalie Furmento" <nathalie.furmento@labri.fr>
  • Cc: starpu-devel <starpu-devel@inria.fr>
  • Subject: Re: [starpu-devel] Subject: Feedback on ImportError when importing "starpu" in Python
  • Date: Mon, 6 Nov 2023 17:18:42 +0800 (GMT+08:00)
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=gaojialong@nudt.edu.cn; spf=Pass smtp.mailfrom=gaojialong@nudt.edu.cn; spf=None smtp.helo=postmaster@hzbj-sdnproxy-1.icoremail.net
  • Ironport-data: A9a23:FtWIYKruBVw1UwVLh4zayYJOjgdeBmIsYRIvgKrLsJaIsI4StFCzt garIBnVM/aPMDf8eItwat/g9RsB7cDSyYNlTlZrqS9hRntE8ePIVI+TRqvSF3PLf5ebFCqLz O1HN4KedJhsJpP4jk3wWlQ0hSAkjclkfpKlVKiefHoZqTZMEE8JkQhkl/MynrlmiN24BxLlk d7pqqUzAnf8s9JPGjxSs/nrRC9H5qyo42pB5gJmP5ingXeH/5UrJMJHTU2OByCgKmVkNrbSb /rOyri/4lTY838FYj9yuuuTnuUiG9Y+DCDW4pZkc/DKbitq+kTe5p0G2M80Mi+7vdkmc+dZk 72hvbToIesg0zaldO41C3G0GAkmVUFKFSOuzdFSfqV/wmWfG0YAzcmCA2k6fpUZxcAsE1hOz qIAchwhVDfS2vK5lefTpulE3qzPLeHrLokd/2psyynDCuY3BMmFQq7N/9Jd1TY0wMZDAZ4yZ eJDM2EpNkmaJUcWZhFGU/rSn8/w7pX7WzJRr1CUrK4w5Wf7yhF9zP7gPMeTcdriqcB9wR7F9 zOapTiR7hcyM/a0+TaM4lyVlPL+r3jWY4BJOqKo6as/6LGU7ilKYPEMbn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7XImyqdEuSFJQPsm/ Uma5tVqolygjqyO0m89CkEI8GsRwtjS4QMzYva8lNEIQ3vP8RMT4H/FDh0Lo4AgEdjzo+VLz cCJkqvvKTBE+taS/M0GBsGSJtjUVRhpeRfvBjPQCxMICDCxMmSKzUNUl/OT/3mSqJcSrIXgh NwDRqIdX1p/RZZ4Qgx1WccPJpt6RGZuibmAkMsB/maztjHRVs9Y+4vLUOqIBuX+bW/fjLJDf RYNyLL8a4IeKseovi4qIkk/l4PMFU3KWNlLqSA0dQ44rnJG931mR3Ey0UboAutCyHkOGeLyk xIrzAB4M71FHNbE40U9JB/RqC0oik4hiJC8xzGadyT8Ka6xWcdQBjam7yDZ17v9XgppKwC+g ApvMmWcL48=
  • Ironport-sdr: 6548af98_aWxQF6+huM+NfE6uSrXOi1lSjDtdVsabdE1beX//9LcflQi zuSU33rbaG/jxqU6e+ldYlZNLptKQflh0R4A5VQ==

Not really, it dose not work. BTW, the chatGPT advised to check if the starpupy.cpython-310-x86_64-linux0gnu.so was well made,

I try to run


objdump -T /usr/local/lib/python3.10/site-packages/starpu/starpupy.cpython-310-x86_64-linux-gnu.so | grep *UND*


0000000000000000      DF *UND*    0000000000000000  Base        starpu_data_unregister_submit
0000000000000000      DF *UND*    0000000000000000  Base        PyList_New
0000000000000000      DF *UND*    0000000000000000 (GLIBC_2.2.5) free
0000000000000000      DF *UND*    0000000000000000  Base        starpu_malloc_on_node_flags
0000000000000000      DF *UND*    0000000000000000 (GLIBC_2.2.5) backtrace_symbols_fd
0000000000000000      DF *UND*    0000000000000000 (GLIBC_2.3.4) __vfprintf_chk
0000000000000000      DF *UND*    0000000000000000 (GLIBC_2.2.5) abort
0000000000000000      DF *UND*    0000000000000000  Base        starpu_pause
0000000000000000      DF *UND*    0000000000000000  Base        PyUnicode_DecodeUTF32
0000000000000000      DF *UND*    0000000000000000  Base        starpu_interface_map
0000000000000000  w   D  *UND*    0000000000000000  Base        _ITM_deregisterTMCloneTable
0000000000000000      DF *UND*    0000000000000000  Base        PyGILState_Release
0000000000000000      DF *UND*    0000000000000000  Base        PyModuleDef_Init
0000000000000000      DF *UND*    0000000000000000  Base        PyEval_RestoreThread
0000000000000000      DF *UND*    0000000000000000  Base        PyMem_Free
0000000000000000      DF *UND*    0000000000000000  Base        starpu_codelet_pick_arg
0000000000000000      DF *UND*    0000000000000000 (GLIBC_2.2.5) puts
0000000000000000      DF *UND*    0000000000000000  Base        starpu_data_register_ops
0000000000000000      DF *UND*    0000000000000000  Base        starpu_mpi_ms_worker_get_count
0000000000000000      DF *UND*    0000000000000000  Base        PyBuffer_Release
0000000000000000      DF *UND*    0000000000000000  Base        starpu_perfmodel_deinit
0000000000000000      DF *UND*    0000000000000000  Base        PyObject_GetAttrString
0000000000000000      DF *UND*    0000000000000000  Base        PyDict_Contains
0000000000000000      DF *UND*    0000000000000000  Base        PyBytes_FromStringAndSize
0000000000000000      DF *UND*    0000000000000000  Base        PyObject_SetAttrString
0000000000000000      DF *UND*    0000000000000000  Base        starpu_resume
0000000000000000      DF *UND*    0000000000000000  Base        Py_EndInterpreter
0000000000000000      DF *UND*    0000000000000000  Base        _Py_Dealloc
0000000000000000      DF *UND*    0000000000000000  Base        PyIter_Next
0000000000000000      DF *UND*    0000000000000000  Base        PyUnicode_AsUCS4Copy
0000000000000000      DF *UND*    0000000000000000  Base        starpu_task_declare_deps
0000000000000000      DF *UND*    0000000000000000  Base        starpu_task_set_destroy
0000000000000000      DF *UND*    0000000000000000  Base        starpu_data_partition_clean
0000000000000000      DF *UND*    0000000000000000  Base        PyImport_GetModuleDict
0000000000000000      DF *UND*    0000000000000000 (GLIBC_2.2.5) backtrace
0000000000000000      DF *UND*    0000000000000000 (GLIBC_2.4)  __stack_chk_fail
0000000000000000      DO *UND*    0000000000000000  Base        PyExc_RuntimeError
0000000000000000      DF *UND*    0000000000000000  Base        starpu_codelet_init
0000000000000000      DF *UND*    0000000000000000  Base        starpu_data_get_home_node
0000000000000000      DF *UND*    0000000000000000  Base        starpu_tcpip_ms_worker_get_count
0000000000000000      DF *UND*    0000000000000000  Base        starpu_malloc_on_node
0000000000000000      DF *UND*    0000000000000000  Base        PyErr_SetString
0000000000000000      DF *UND*    0000000000000000  Base        starpu_shutdown
0000000000000000      DF *UND*    0000000000000000  Base        starpu_data_unregister
0000000000000000      D  *UND*    0000000000000000  Base        starpu_save_history_based_model
0000000000000000      DF *UND*    0000000000000000  Base        starpu_data_get_interface_on_node
0000000000000000      DF *UND*    0000000000000000 (GLIBC_2.2.5) __assert_fail
0000000000000000      DF *UND*    0000000000000000  Base        PyGILState_Ensure
0000000000000000      DF *UND*    0000000000000000  Base        PyTuple_GetItem
0000000000000000      DF *UND*    0000000000000000  Base        PyErr_Print
0000000000000000      DF *UND*    0000000000000000  Base        PyErr_PrintEx
0000000000000000      DF *UND*    0000000000000000 (GLIBC_2.2.5) memset
0000000000000000      DF *UND*    0000000000000000  Base        starpu_sched_get_max_priority
0000000000000000      DF *UND*    0000000000000000  Base        Py_NewInterpreter
0000000000000000      DF *UND*    0000000000000000  Base        starpu_sched_get_min_priority
0000000000000000      DF *UND*    0000000000000000  Base        PyInstanceMethod_New
0000000000000000      DF *UND*    0000000000000000  Base        PyBytes_Size
0000000000000000      DF *UND*    0000000000000000  Base        PyDict_GetItem
0000000000000000      DF *UND*    0000000000000000  Base        PyLong_FromVoidPtr
0000000000000000      DF *UND*    0000000000000000  Base        PyErr_NewException
0000000000000000      DF *UND*    0000000000000000  Base        starpu_init
0000000000000000      DF *UND*    0000000000000000 (GLIBC_2.2.5) calloc
0000000000000000      DF *UND*    0000000000000000  Base        starpu_task_submit
0000000000000000      DF *UND*    0000000000000000  Base        PyErr_Clear
0000000000000000      DF *UND*    0000000000000000  Base        starpu_data_get_interface_id
0000000000000000      DF *UND*    0000000000000000 (GLIBC_2.2.5) strcmp
0000000000000000      DO *UND*    0000000000000000  Base        _Py_FalseStruct
0000000000000000  w   D  *UND*    0000000000000000  Base        __gmon_start__
0000000000000000      DF *UND*    0000000000000000  Base        starpu_free_on_node
0000000000000000      DF *UND*    0000000000000000  Base        PyTuple_New
0000000000000000      DF *UND*    0000000000000000 (GLIBC_2.2.5) strtol
0000000000000000      DF *UND*    0000000000000000  Base        PyThreadState_Get
0000000000000000      DF *UND*    0000000000000000  Base        PyDict_DelItem
0000000000000000      DF *UND*    0000000000000000 (GLIBC_2.14) memcpy
0000000000000000      DF *UND*    0000000000000000  Base        starpu_data_acquire
0000000000000000      DF *UND*    0000000000000000  Base        starpu_codelet_pack_arg_fini
0000000000000000      DF *UND*    0000000000000000  Base        PySet_Discard
0000000000000000      DF *UND*    0000000000000000  Base        PyLong_AsLong
0000000000000000      DF *UND*    0000000000000000  Base        PyImport_ImportModule
0000000000000000      DF *UND*    0000000000000000  Base        PyObject_CallObject
0000000000000000      DF *UND*    0000000000000000  Base        PyList_SetItem
0000000000000000      DF *UND*    0000000000000000  Base        starpu_worker_get_count_by_type
0000000000000000      DF *UND*    0000000000000000  Base        PyObject_CallFunctionObjArgs
0000000000000000      DF *UND*    0000000000000000  Base        PyTuple_SetItem
0000000000000000      DF *UND*    0000000000000000  Base        PyDict_GetItemString
0000000000000000      DF *UND*    0000000000000000  Base        starpu_task_get_current
0000000000000000      DF *UND*    0000000000000000  Base        _PyObject_CallMethod_SizeT
0000000000000000      DF *UND*    0000000000000000  Base        starpu_data_register
0000000000000000      DF *UND*    0000000000000000 (GLIBC_2.2.5) malloc
0000000000000000      DF *UND*    0000000000000000  Base        _PyArg_ParseTuple_SizeT
0000000000000000      DF *UND*    0000000000000000  Base        starpu_hash_crc32c_be
0000000000000000      DF *UND*    0000000000000000  Base        starpu_filter_nparts_compute_chunk_size_and_offset
0000000000000000      DO *UND*    0000000000000000  Base        _Py_NoneStruct
0000000000000000      DF *UND*    0000000000000000  Base        starpu_data_interface_get_next_id
0000000000000000      DF *UND*    0000000000000000  Base        PyFloat_AsDouble
0000000000000000      DF *UND*    0000000000000000  Base        starpu_execute_on_each_worker_ex
0000000000000000      DF *UND*    0000000000000000  Base        PyObject_IsTrue
0000000000000000      DF *UND*    0000000000000000  Base        starpu_task_wait_for_all
0000000000000000      DF *UND*    0000000000000000  Base        starpu_codelet_pack_arg
0000000000000000      DF *UND*    0000000000000000  Base        starpu_codelet_unpack_arg_fini
0000000000000000      DF *UND*    0000000000000000  Base        starpu_task_create
0000000000000000      DF *UND*    0000000000000000  Base        _starpu_worker_get_id_check
0000000000000000      DF *UND*    0000000000000000  Base        starpu_interface_update_map
0000000000000000      DF *UND*    0000000000000000  Base        PyList_Size
0000000000000000      DO *UND*    0000000000000000  Base        _Py_TrueStruct
0000000000000000      DF *UND*    0000000000000000  Base        starpu_codelet_pack_arg_init
0000000000000000      DF *UND*    0000000000000000  Base        starpu_interface_copy
0000000000000000      DF *UND*    0000000000000000  Base        PyCallable_Check
0000000000000000      DF *UND*    0000000000000000 (GLIBC_2.34) pthread_create
0000000000000000      DF *UND*    0000000000000000  Base        PyObject_GetBuffer
0000000000000000      DF *UND*    0000000000000000  Base        PyLong_AsUnsignedLong
0000000000000000      DF *UND*    0000000000000000  Base        PyDict_Next
0000000000000000      DF *UND*    0000000000000000  Base        PyUnicode_AsWideCharString
0000000000000000      DF *UND*    0000000000000000  Base        starpu_codelet_unpack_discard_arg
0000000000000000      DF *UND*    0000000000000000  Base        starpu_free_on_node_flags
0000000000000000      DF *UND*    0000000000000000  Base        PyUnicode_AsUTF8
0000000000000000      DO *UND*    0000000000000000  Base        PyCapsule_Type
0000000000000000      DF *UND*    0000000000000000  Base        starpu_data_release
0000000000000000      DF *UND*    0000000000000000  Base        PyErr_Fetch
0000000000000000      DF *UND*    0000000000000000  Base        starpu_interface_unmap
0000000000000000      DF *UND*    0000000000000000  Base        PyCapsule_SetPointer
0000000000000000      DF *UND*    0000000000000000  Base        PyModule_AddStringConstant
0000000000000000      DF *UND*    0000000000000000  Base        PyObject_GetIter
0000000000000000      DF *UND*    0000000000000000  Base        PyEval_SaveThread
0000000000000000      DF *UND*    0000000000000000  Base        PyModule_AddObject
0000000000000000      DO *UND*    0000000000000000  Base        PyExc_ImportError
0000000000000000      DF *UND*    0000000000000000  Base        starpu_hash_crc32c_be_ptr
0000000000000000      DF *UND*    0000000000000000  Base        PyDict_SetItem
0000000000000000      DO *UND*    0000000000000000  Base        PyExc_AttributeError
0000000000000000      DF *UND*    0000000000000000  Base        PySet_Add
0000000000000000      DF *UND*    0000000000000000  Base        PyBytes_AsString
0000000000000000      DF *UND*    0000000000000000  Base        starpu_getenv
0000000000000000      DF *UND*    0000000000000000  Base        starpu_conf_init
0000000000000000      DF *UND*    0000000000000000  Base        PyCapsule_New
0000000000000000      DF *UND*    0000000000000000  Base        PyTuple_Size
0000000000000000      DF *UND*    0000000000000000  Base        PyErr_Format
0000000000000000      DF *UND*    0000000000000000 (GLIBC_2.2.5) exit
0000000000000000      DF *UND*    0000000000000000  Base        PyCapsule_GetPointer
0000000000000000      DF *UND*    0000000000000000  Base        starpu_codelet_unpack_arg
0000000000000000      DF *UND*    0000000000000000 (GLIBC_2.2.5) fwrite
0000000000000000      DF *UND*    0000000000000000 (GLIBC_2.3.4) __fprintf_chk
0000000000000000      DF *UND*    0000000000000000  Base        _Py_BuildValue_SizeT
0000000000000000      DF *UND*    0000000000000000  Base        PyModule_GetDict
0000000000000000  w   D  *UND*    0000000000000000  Base        _ITM_registerTMCloneTable
0000000000000000      DF *UND*    0000000000000000  Base        PyObject_GetAttr
0000000000000000      DF *UND*    0000000000000000  Base        PyBytes_AsStringAndSize
0000000000000000      DF *UND*    0000000000000000 (GLIBC_2.2.5) strdup
0000000000000000      DF *UND*    0000000000000000  Base        PyList_GetItem
0000000000000000      DF *UND*    0000000000000000  Base        PyMemoryView_FromMemory
0000000000000000      DF *UND*    0000000000000000  Base        starpu_interface_data_copy
0000000000000000      DF *UND*    0000000000000000  Base        PyThreadState_Swap
0000000000000000  w   DF *UND*    0000000000000000 (GLIBC_2.2.5) __cxa_finalize
0000000000000000      DF *UND*    0000000000000000  Base        starpu_task_nsubmitted
0000000000000000      DF *UND*    0000000000000000  Base        starpu_data_partition_plan
0000000000000000      DF *UND*    0000000000000000  Base        starpu_codelet_unpack_arg_init
0000000000000000      DO *UND*    0000000000000000 (GLIBC_2.2.5) stderr
0000000000000000      DF *UND*    0000000000000000  Base        PySequence_Fast



The line marked in yellow is the undefined symbol python noted. Maybe others would cause the same error, I guess。
-----原始郵件-----
發件人: "Nathalie Furmento" <nathalie.furmento@labri.fr>
發送時間: 2023-11-06 16:56:02 (星期一)
收件人: 高家隆 <gaojialong@nudt.edu.cn>
抄送: starpu-devel <starpu-devel@inria.fr>
主題: Re: [starpu-devel] Subject: Feedback on ImportError when importing "starpu" in Python

That's the directory in which you installed StarPU.

Does it resolve your problem ?

Cheers,

Nathalie

(PS: please keep the list in copy)

Le 06/11/2023 à 09:50, 高家隆 a écrit :
Thank you, I did run starpu_env, and

echo " Setting StarPU environment for /usr/local", is it the prefix path for the starpu?

I just wonder if the python package is well setuped



-----原始郵件-----
發件人: "Nathalie Furmento" <nathalie.furmento@labri.fr>
發送時間: 2023-11-06 16:31:26 (星期一)
收件人: 高家隆 <gaojialong@nudt.edu.cn>, starpu-devel@inria.fr
主題: Re: [starpu-devel] Subject: Feedback on ImportError when importing "starpu" in Python

Hello,

you may be missing some environment variables,

$ . /usr/local/bin/starpu_env
before calling python may help

Cheers,

Nathalie


Le 06/11/2023 à 07:51, 高家隆 a écrit :
7848893a.1930.18ba3666a75.Coremail.gaojialong@nudt.edu.cn">

Dear StarPU Support Team,

I hope this email finds you well.I am writing to provide feedback regarding an issue I encountered when trying to import the "starpu" module in Python.


Here is the error message I received after compiling and generating "starpupy":

Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
Type "help", "copyright", "credits", or "license" for more information.
>>> import starpupy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'starpupy'
>>> import starpu
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.10/site-packages/starpu/__init__.py", line 17, in <module>
    from . import starpupy
ImportError: /usr/local/lib/python3.10/site-packages/starpu/starpupy.cpython-310-x86_64-linux-gnu.so: undefined symbol: starpu_save_history_based_model
>>> import starpupy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'starpupy'
>>> import starpu
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.10/site-packages/starpu/__init__.py", line 17, in <module>
    from . import starpupy
ImportError: /usr/local/lib/python3.10/site-packages/starpu/starpupy.cpython-310-x86_64-linux-gnu.so: undefined symbol: starpu_save_history_based_model
>>> exit()






It appears that the "starpu" module is not properly linked, resulting in the import errors mentioned above. Could you please advise on how to resolve this issue?

I would greatly appreciate any assistance or guidance you can provide to help me successfully import and utilize the "starpu" module in my Python environment.

In addition, here is the procedure how I compile the source from git,


pip3 install joblib
pip3 install cloudpickle
pip3 install numpy

../configure --enable-simgrid --enable-starpupy --enable-blocking-drivers --prefix=/usr/local
# Some special segment I noticed

...

checking for hierarchical dags - a.k.a bubble - support... no
checking whether bubble debug messages should be displayed... no
checking for SIMGRID... yes
checking for main in -lsimgrid... yes
checking for simgrid/msg.h... no
checking for msg/msg.h... no
checking for simgrid/host.h... yes
checking for simgrid/link.h... yes
checking for xbt/base.h... yes
checking for simgrid/version.h... yes
checking for simgrid/simdag.h... no
checking for xbt/synchro.h... no
checking for xbt/config.h... yes
checking for simgrid/actor.h... yes
checking for simgrid/engine.h... yes
checking for simgrid/semaphore.h... yes
checking for simgrid/mutex.h... yes
checking for simgrid/cond.h... yes
checking for simgrid/barrier.h... yes
checking for simgrid/engine.h... (cached) yes
checking for simgrid/zone.h... yes
checking for smx_actor_t... no
checking for MSG_process_attach... no
checking for sg_actor_attach... yes
checking for sg_actor_init... yes
checking for sg_actor_set_stacksize... yes
checking for sg_actor_on_exit... yes
checking for MSG_zone_get_hosts... no
checking for sg_zone_get_hosts... yes
checking for MSG_process_self_name... no
checking for MSG_process_userdata_init... no
checking for sg_actor_get_data... yes
checking for sg_actor_set_data... yes
checking for sg_actor_data... no
checking for xbt_mutex_try_acquire... no
checking for smpi_process_set_user_data... yes
checking for SMPI_thread_create... yes
checking for sg_zone_get_by_name... yes
checking for sg_link_get_name... yes
checking for sg_link_name... no
checking for sg_link_set_bandwidth... yes
checking for sg_link_bandwidth_set... no
checking for sg_host_get_route... yes
checking for sg_host_route... no
checking for sg_host_self... yes
checking for sg_host_list... yes
checking for sg_host_get_speed... yes
checking for sg_host_speed... no
checking for simcall_process_create... no
checking for sg_config_continue_after_help... yes
checking for simgrid_set_maestro... yes
checking for simgrid_init... yes
checking for xbt_barrier_init... no
checking for sg_actor_sleep_for... yes
checking for sg_actor_self... yes
checking for sg_actor_ref... yes
checking for sg_host_get_properties... yes
checking for sg_host_send_to... no
checking for sg_host_sendto... yes
checking for sg_cfg_set_int... yes
checking for sg_actor_self_execute... no
checking for sg_actor_execute... yes
checking for simgrid_get_clock... yes
checking for gcc options needed to detect all undeclared functions... none needed
checking whether smpi_process_set_user_data is declared... yes
checking for MSG_get_as_by_name... no
checking for MSG_zone_get_by_name... no
checking for MSG_environment_get_routing_root... no
checking for MSG_host_get_speed... no
checking whether SimGrid is enabled... yes
checking whether blocking drivers should be enabled... yes
checking whether worker callbacks should be enabled... no
checking whether g++ supports C++11 features by default... yes
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop

...

# By the way, my SimGrid's version is 3.34.1

make
make install


Thank you for your attention to this matter. I look forward to your prompt response.

Best regards,

Geolone


-- 
Dr Nathalie Furmento               Ingénieure de recherche CNRS http://www.labri.fr/~furmento/ LaBRI - Université Bordeaux


-- 
Dr Nathalie Furmento               Ingénieure de recherche CNRS http://www.labri.fr/~furmento/ LaBRI - Université Bordeaux



Archives gérées par MHonArc 2.6.19+.

Haut de le page