123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- #!/bin/bash
- path=$PWD
- file=compare.cc
- echo Compile with gcc
- rm -f *.bin
- rm -f ../scattnlay
- echo Uncomment next line to compile compare.cc
- g++ -Ofast -std=c++11 $file nmie.cc nmie-wrapper.cc -lm -lrt -o scattnlay.bin /usr/lib/libtcmalloc.so.4 -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -march=native -mtune=native -msse4.2
- cp scattnlay.bin ../scattnlay
- PROGRAM='../../../scattnlay'
- rm scattnlay.so
- export CFLAGS='-std=c++11'
- python setup.py build_ext --inplace
- cp scattnlay.so tests/python/
- cd tests/python/
- ./field.py
- ./test01.py
- ./test01-wrapper.py
|