Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Filippo Mantovani
    @filimanto
    Right, we accumulated the time of all processes
    Matthieu Schaller
    @MatthieuSchaller
    Just tested it on my laptop and it took 31s to dump the snapshot. That's a non-parallel HDF5 version.
    I suspect there is something not quite right with your file system setup
    You can switch off HDF5 compression in the parameter file if you want to gain some speed
    4.3s for the same snapshot without compression
    Filippo Mantovani
    @filimanto
    OK, thanks. We will check the configuration of our NFS then. Thanks
    hussamalmotlak
    @hussamalmotlak
    Hallo, I wanted to ask, can compile swiftsim with ncc compiler instead of gcc?
    Josh Borrow
    @JBorrow
    I don't see why not, we have never tried though
    Matthieu Schaller
    @MatthieuSchaller
    SWIFT is GNU99 compatible so any compiler that obeys that dialect will work.
    hussamalmotlak
    @hussamalmotlak
    It did not work, so I thought there would something to do first.
    Matthieu Schaller
    @MatthieuSchaller
    What kind of errors do you get?
    Hussam Almotlak
    @Hussam_Almotlak_twitter
    This: make all-am
    make[3]: Entering directory /home/hussam/swiftsim/src' source='space.c' object='libswiftsim_la-space.lo' libtool=yes \ DEPDIR=.deps depmode=tru64 /bin/sh ../depcomp \ /bin/sh ../libtool --tag=CC --mode=compile ncc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/home/hussam/fftw/include -pthread -Wall -Wextra -Wno-unused-parameter -Wshadow -Werror -c -o libswiftsim_la-space.lotest -f 'space.c' || echo './'space.c libtool: compile: ncc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/home/hussam/fftw/include -pthread -Wall -Wextra -Wno-unused-parameter -Wshadow -Werror -c -MD space.c -fPIC -DPIC -o .libs/libswiftsim_la-space.o ncc: Warning: unrecognized option '-Wextra' ncc: Warning: unrecognized option '-Wshadow' make[3]: *** [libswiftsim_la-space.lo] Error 1 make[3]: Leaving directory/home/hussam/swiftsim/src'
    make[2]: [all] Error 2
    make[2]: Leaving directory `/home/hussam/swiftsim/src'
    make[1]:
    [all-recursive] Error 1
    make[1]: Leaving directory `/home/hussam/swiftsim'
    make: * [all] Error 2
    Josh Borrow
    @JBorrow
    Your compiler doesn't understand all of the warning flags that we pass to it. Try ./configure <your flags> --disable-compiler-warnings
    Hussam Almotlak
    @Hussam_Almotlak_twitter

    I dont know it did not work: make all-am
    make[3]: Entering directory /home/hussam/swiftsim/src' source='space.c' object='libswiftsim_la-space.lo' libtool=yes \ DEPDIR=.deps depmode=tru64 /bin/sh ../depcomp \ /bin/sh ../libtool --tag=CC --mode=compile ncc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/home/hussam/fftw/include -pthread -c -o libswiftsim_la-space.lotest -f 'space.c' || echo './'`space.c
    libtool: compile: ncc -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/home/hussam/fftw/include -pthread -c -MD space.c -fPIC -DPIC -o .libs/libswiftsim_la-space.o
    "/usr/include/gnu/stubs.h", line 7: catastrophic error: cannot open source file
    "gnu/stubs-32.h"

    include <gnu/stubs-32.h>

                            ^

    1 catastrophic error detected in the compilation of "space.c".
    make[3]: [libswiftsim_la-space.lo] Error 1
    make[3]: Leaving directory `/home/hussam/swiftsim/src'
    make[2]:
    [all] Error 2
    make[2]: Leaving directory /home/hussam/swiftsim/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/hussam/swiftsim'
    make: * [all] Error 2

    is there something missing
    Josh Borrow
    @JBorrow
    Yes, you are now not linking correctly to the standard library.
    Hussam Almotlak
    @Hussam_Almotlak_twitter
    I did this: ./configure --with-fftw=/home/hussam/fftw --prefix=/home/hussam/swift --disable-compiler-warnings CC=ncc CXX=nc++
    so should I instead of CC=ncc put the path to libc.a?
    Josh Borrow
    @JBorrow
    No you will need to add to the include path and link path../configure —help should be helpful.
    Hussam Almotlak
    @Hussam_Almotlak_twitter
    Thank you for the help. I think the problem is in the compiler because I tried: env CFLAGS='-I/opt/nec/ve/include' CPPFLAGS='-I/opt/nec/ve/include' LDFLAGS='-L/opt/nec/ve/lib' ./configure --disable-compiler-warnings CC=ncc CXX=nc++ and it did not work also
    Matthieu Schaller
    @MatthieuSchaller
    Is the compiler installed correctly ? It seems odd that it can't find its own version of the c library
    Hussam Almotlak
    @Hussam_Almotlak_twitter
    I think yes because I can use it normally EX: "ncc file.c" go correctly. I tried also "./configure" with somthing else like hdf5 library and it went well. Only swiftsim does not go well.
    Matthieu Schaller
    @MatthieuSchaller
    Ok. Looks likes one of the files included in our space.h tries to include a file that includes gnu/stubs-32.h.
    Do you have the 32-bit libc development packages installed?
    Hussam Almotlak
    @Hussam_Almotlak_twitter
    I have in the gnu a file name stubs.h, but not stubs-32.h
    Hussam Almotlak
    @Hussam_Almotlak_twitter
    aparently I dont have the 32-bit version. I am not sure how can I get it
    Matthieu Schaller
    @MatthieuSchaller
    It's usually part of the 32bit libc package which you can easily install if you are admin on your system
    I am puzzled as to why you would need it for SWIFT though. Are there flags you can pass to your compiler to specify 32/64 bits libc ?
    Hussam Almotlak
    @Hussam_Almotlak_twitter
    I am an admin on the system. So do I do that, please!
    I have read the doc. about the compiler. I think it uses the 64 bit version of libc, and I did not read about such flags
    *how
    Josh Borrow
    @JBorrow
    That will depend on your operating system. You can search for how to install 32 bit glibc <name of OS> and there should be some results there to help you
    Matthieu Schaller
    @MatthieuSchaller
    No, what I meant is that it's surprising that SWIFT would require the 32bits libc. But maybe ncc itself will for some of its analysis?
    Francesco Radica
    @Francyrad

    Dear users. I did very well autogen and then configure. However, during the make process, after many many lines, this happen to me:

    cosmology.c:408:35: error: unknown type name ‘gsl_integration_workspace’
    408 | double neutrino_density_integrate(gsl_integration_workspace space, double y) {
    | ^~~~~~~~~
    cosmology.c:437:42: error: unknown type name ‘gsl_integration_workspace’
    437 | gsl_integration_workspace
    space) {
    | ^~~~~~~~~
    make[3]: [Makefile:2653: libswiftsim_la-cosmology.lo] Errore 1
    make[3]: uscita dalla directory «/home/francyrad/Scaricati/swiftsim-master/src»
    make[2]:
    [Makefile:1374: all] Errore 2
    make[2]: uscita dalla directory «/home/francyrad/Scaricati/swiftsim-master/src»
    make[1]: [Makefile:522: all-recursive] Errore 1
    make[1]: uscita dalla directory «/home/francyrad/Scaricati/swiftsim-master»
    make:
    [Makefile:454: all] Errore 2

    where "errore" in english means error and "uscita dalla directory" means exit from direcotry
    directory*
    i didn't understood if that is normal or not
    Thank you for the future help!
    Matthieu Schaller
    @MatthieuSchaller
    Hi, this looks like you are either compiling with an outdated version of the GSL library or the autotool script did not find the GSL on your system.
    Francesco Radica
    @Francyrad

    Ive Ubuntu 20.04, This is my version. Any suggestion or previous problems?

    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
    OFFLOAD_TARGET_NAMES=nvptx-none:hsa
    OFFLOAD_TARGET_DEFAULT=1
    Target: x86_64-linux-gnu
    Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-17ubuntu1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-HskZEa/gcc-9-9.3.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
    Thread model: posix
    gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)

    Francesco Radica
    @Francyrad
    Ah sorry, maybe I'm going to confuse our-self a little bit. In the file "INSTALL.swift" there is written that GSL is different from GCC
    However google still says that is GNU
    I will install on with sudo apt as protocol
    and let you know, thank for the help!
    yeahhhh now it goes
    For the future users, i solved installing gsl on ubuntu with: sudo apt-get install libgsl-dev
    Matthieu Schaller
    @MatthieuSchaller
    GSL is a scientifc library which is maintained by GNU
    Glad it worked!
    Francesco Radica
    @Francyrad
    ive to install others like fftw etc and 'ill let you know, but i dnt think there'd be problems. What shoud the terminal says to me at the end of the isntallation? Something like swift installed succesfully?
    Francesco Radica
    @Francyrad

    ok at the end, having only the standard libraries, this happen to me: THere are no errors but it exits from all the directories and nothing other

    libtool: link: mpicc -I../src -I../argparse -I/usr/include -I/usr/include/hdf5/serial -fopenmp -DWITH_MPI "-DENGINE_POLICY=engine_policy_keep | engine_policy_setaffinity" -O3 -fomit-frame-pointer -malign-double -fstrict-aliasing -ffast-math -funroll-loops -march=skylake -mavx2 -pthread -Wall -Wextra -Wno-unused-parameter -Wshadow -Werror -Wstrict-prototypes -o swift_mpi swift_mpi-main.o -L/usr/lib/x86_64-linux-gnu/hdf5/serial ../src/.libs/libswiftsim_mpi.a ../argparse/.libs/libargparse.a -lhdf5_hl -lhdf5 -lpthread -lsz -lz -ldl -lfftw3_threads -lfftw3 -lnuma -lgsl -lgslcblas -lm -pthread -fopenmp
    make[2]: uscita dalla directory «/home/francyrad/Scaricati/swiftsim-master/examples»
    Making all in doc
    make[2]: ingresso nella directory «/home/francyrad/Scaricati/swiftsim-master/doc»
    make[2]: Nessuna operazione da eseguire per «all».
    make[2]: uscita dalla directory «/home/francyrad/Scaricati/swiftsim-master/doc»
    Making all in tests
    make[2]: ingresso nella directory «/home/francyrad/Scaricati/swiftsim-master/tests»
    make[2]: Nessuna operazione da eseguire per «all».
    make[2]: uscita dalla directory «/home/francyrad/Scaricati/swiftsim-master/tests»
    Making all in tools
    make[2]: ingresso nella directory «/home/francyrad/Scaricati/swiftsim-master/tools»
    make[2]: Nessuna operazione da eseguire per «all».
    make[2]: uscita dalla directory «/home/francyrad/Scaricati/swiftsim-master/tools»
    make[2]: ingresso nella directory «/home/francyrad/Scaricati/swiftsim-master»
    make[2]: uscita dalla directory «/home/francyrad/Scaricati/swiftsim-master»
    make[1]: uscita dalla directory «/home/francyrad/Scaricati/swiftsim-master

    Francesco Radica
    @Francyrad
    ok example runned succesfully