Coder Social home page Coder Social logo

flowexafmm.jl's People

Contributors

dgcaprace avatar edoalvarezr avatar rymanderson avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

flowexafmm.jl's Issues

sh build.sh

I have followed every step respectively. But still faced with problems in this step. I used different computers and results never changed. computer feedback is:

Removing existing build
rm: 'src/fmm.so' silinemedi: Böyle bir dosya ya da dizin yok
Copying files
Configuring build
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for CC... no
checking for icpc... no
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for ftn... no
checking for ifort... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran compiler... yes
checking whether gfortran accepts -g... yes
checking for ranlib... ranlib
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking for OpenMP flag of C++ compiler... -fopenmp
checking for mpiicpc... no
checking for mpicxx... mpicxx
checking for mpxlf90_rftn... no
checking for mpiifort... no
checking for mpif90... mpif90
checking for MPI_Init... yes
checking for MPI_Init in -lmpi... yes
checking for MPI_Init in -lmpich... yes
checking for MPI_Init in -lmpicxx... no
checking for MPI_Init in -lfmpi... no
checking for MPI_Init in -lmpichf90... no
checking for MPI_Init in -lmpi_cxx... yes
checking for mpirun... mpirun
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for x86 cpuid output... unknown
checking for x86-AVX xgetbv output... unknown
checking for x86 cpuid 0x00000000 output... d:756e6547:6c65746e:49656e69
checking for x86 cpuid 0x80000000 output... 80000008:0:0:0
checking for x86 cpuid 0x00000001 output... 306c3:4100800:7dfafbbf:bfebfbff
checking for x86 cpuid 0x00000007 output... 0:27ab:0:9c000600
checking for x86 cpuid 0x80000001 output... 0:0:21:2c100800
checking for x86-AVX xgetbv 0x00000000 output... 7:0
checking whether SSE3 is supported by the processor... yes
checking whether SSE3 is supported by the processor and OS... yes
checking whether C++ compiler accepts -msse3... yes
checking whether AVX is supported by the processor... yes
checking whether AVX is supported by the processor and OS... yes
checking whether C++ compiler accepts -mavx... yes
checking whether AVX2 is supported by the processor... yes
checking whether AVX2 is supported by the processor and OS... yes
checking whether C++ compiler accepts -mavx2... yes
checking whether AVX512-F is supported by the processor... no
checking whether AVX512-CD is supported by the processor... no
checking whether AVX512-PF is supported by the processor... no
checking whether AVX512-ER is supported by the processor... no
checking whether AVX512-VL is supported by the processor... no
checking whether AVX512-BW is supported by the processor... no
checking whether AVX512-DQ is supported by the processor... no
checking whether AVX512-IFMA is supported by the processor... no
checking whether AVX512-VBMI is supported by the processor... no
checking for C++ compiler vendor... gnu
checking for C++ compiler vendor... (cached) gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking whether C++ compiler accepts -Werror=unknown-warning-option... no
checking whether C++ compiler accepts -diag-error warn... no
checking whether C++ compiler accepts -O0... yes
checking whether C++ compiler accepts -g... yes
checking whether C++ compiler accepts -Werror... yes
checking whether C++ compiler accepts -check all... no
checking whether C++ compiler accepts -debug all... no
checking whether C++ compiler accepts -diag-disable remark... no
checking whether C++ compiler accepts -fmudflap... yes
checking whether C++ compiler accepts -fno-strict-aliasing... yes
checking whether C++ compiler accepts -fsanitize=address... yes
checking whether C++ compiler accepts -fsanitize=leak... yes
checking whether C++ compiler accepts -fstack-protector... yes
checking whether C++ compiler accepts -ftrapuv... no
checking whether C++ compiler accepts -ftrapv... yes
checking whether C++ compiler accepts -traceback... no
checking whether C++ compiler accepts -Wall... yes
checking whether C++ compiler accepts -Warray-bounds... yes
checking whether C++ compiler accepts -Wbad-function-cast... no
checking whether C++ compiler accepts -Wcast-align... yes
checking whether C++ compiler accepts -Wcast-qual... yes
checking whether C++ compiler accepts -Wextra... yes
checking whether C++ compiler accepts -Wfatal-errors... yes
checking whether C++ compiler accepts -Wformat=2... yes
checking whether C++ compiler accepts -Wformat-nonliteral... yes
checking whether C++ compiler accepts -Wformat-security... yes
checking whether C++ compiler accepts -Winit-self... yes
checking whether C++ compiler accepts -Winline... yes
checking whether C++ compiler accepts -Wmissing-format-attribute... yes
checking whether C++ compiler accepts -Wmissing-include-dirs... yes
checking whether C++ compiler accepts -Wmissing-noreturn... yes
checking whether C++ compiler accepts -Wnested-externs... no
checking whether C++ compiler accepts -Wno-missing-field-initializers... yes
checking whether C++ compiler accepts -Wno-overloaded-virtual... yes
checking whether C++ compiler accepts -Wno-unused-local-typedefs... yes
checking whether C++ compiler accepts -Wno-unused-parameter... yes
checking whether C++ compiler accepts -Wno-unused-variable... yes
checking whether C++ compiler accepts -Wpointer-arith... yes
checking whether C++ compiler accepts -Wredundant-decls... yes
checking whether C++ compiler accepts -Wreturn-type... yes
checking whether C++ compiler accepts -Wshadow... yes
checking whether C++ compiler accepts -Wsign-compare... yes
checking whether C++ compiler accepts -Wstrict-aliasing... yes
checking whether C++ compiler accepts -Wstrict-overflow=5... yes
checking whether C++ compiler accepts -Wstrict-prototype... no
checking whether C++ compiler accepts -Wswitch-enum... yes
checking whether C++ compiler accepts -Wuninitialized... yes
checking whether C++ compiler accepts -Wunreachable-code... yes
checking whether C++ compiler accepts -Wunused-but-set-variable... yes
checking whether C++ compiler accepts -Wwrite-strings... yes
checking whether C++ compiler accepts -Wno-error=missing-field-initializers... yes
checking whether C++ compiler accepts -Wno-error=overloaded-virtual... yes
checking whether C++ compiler accepts -Wno-error=unused-local-typedefs... yes
checking whether C++ compiler accepts -Wno-error=unused-parameter... yes
checking whether C++ compiler accepts -Wno-error=unused-variable... yes
configure: OpenMP : yes
configure: MPI : yes
configure: CUDA : yes
configure: FP32 : no
configure: SIMD : -msse3 -mavx -mavx2
configure: Assert : yes
configure: Debug : no
configure: Vendor : gnu
configure: CXX : mpicxx
configure: FC : mpif90
configure: CXXFLAGS : -g -O2
configure: FCFLAGS : -g -O2
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating 3d/Makefile
config.status: creating config.h
config.status: executing depfiles commands
Compiling 3d
mpicxx -DHAVE_CONFIG_H -DJULIA_ENABLE_THREADING -Dhello_EXPORTS -I/home/bpm90/.julia/artifacts/391fa0630566129aba72c621b8b52aa5b0240563/include -I/snap/julia/86/include/julia -Wunused-parameter -Wextra -Wreorder -std=gnu++1z -O3 -DNDEBUG -fPIC -ffast-math -I. -I.. -DEXAFMM_WITH_OPENMP -msse3 -mavx -mavx2 -DNDEBUG -DEXAFMM_EAGER -funroll-loops -fabi-version=6 -Wfatal-errors -fopenmp -g -O2 -MT fmm-fmm.o -MD -MP -MF .deps/fmm-fmm.Tpo -c -o fmm-fmm.o test -f 'fmm.cxx' || echo './'fmm.cxx
In file included from exafmm.h:9,
from fmm.cxx:22:
complexify.h: In function ‘real_t imag(const real_t&)’:
complexify.h:35:34: warning: unused parameter ‘r’ [-Wunused-parameter]
35 | inline real_t imag(const real_t& r) {
| ~~~~~~~~~~~~~~^
In file included from fmm.cxx:23:
args.h: In constructor ‘exafmm::Args::Args(int, char**)’:
args.h:35:9: warning: ‘exafmm::Args::verbose’ will be initialized after [-Wreorder]
35 | int verbose; //!< Verbose mode
| ^~~~~~~
args.h:34:12: warning: ‘exafmm::real_t exafmm::Args::phi’ [-Wreorder]
34 | real_t phi; //!< Multipole regularizing acceptance criterion
| ^~~
args.h:93:5: warning: when initialized here [-Wreorder]
93 | Args(int argc=0, char ** argv=NULL)
| ^~~~
In file included from fmm.cxx:25:
dataset.h: In function ‘exafmm::Bodies exafmm::cube(int, int, int)’:
dataset.h:50:29: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
50 | for (size_t b=begin; b!=end; ++b) {
| ~^~~~~
dataset.h: In function ‘exafmm::Bodies exafmm::sphere(int, int, int)’:
dataset.h:67:29: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
67 | for (size_t b=begin; b!=end; ++b) {
| ~^~~~~
dataset.h: In function ‘exafmm::Bodies exafmm::octant(int, int, int)’:
dataset.h:86:29: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
86 | for (size_t b=begin; b!=end; ++b) {
| ~^~~~~
dataset.h: In function ‘exafmm::Bodies exafmm::plummer(int, int, int)’:
dataset.h:106:16: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
106 | while (b != end) {
| ~~^~~~~~
dataset.h: In function ‘void exafmm::initSource(exafmm::Bodies&, int, int)’:
dataset.h:137:31: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
137 | for (size_t b=begin; b!=end; ++b) {
| ~^~~~~
dataset.h:142:31: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
142 | for (size_t b=begin; b!=end; ++b) {
| ~^~~~~
mv -f .deps/fmm-fmm.Tpo .deps/fmm-fmm.Po
mpicxx -funroll-loops -fabi-version=6 -Wfatal-errors -fopenmp -g -O2 -o fmm fmm-fmm.o -lmpi_cxx -L/home/bpm90/.julia/artifacts/391fa0630566129aba72c621b8b52aa5b0240563/include/../lib -lcxxwrap_julia -fPIC -Wunused-parameter -Wextra -Wreorder -std=gnu++1z -O3 -DNDEBUG -shared -Wl,-rpath,: -L/home/bpm90/.julia/artifacts/391fa0630566129aba72c621b8b52aa5b0240563/include/../lib -lcxxwrap_julia -L/snap/julia/86/include/julia/../../lib -ljulia
Done!

so, what should i do?

CxxWrap Precompilation Glitch

  • Context: As I was doing some new development into ExaFMM, I added some arguments to the function calculate(...) in fmm.cxx.

  • The issue: The code would compile, but when importing FLOWExaFMM, I'd get the following error:
    ERROR: LoadError: InitError: Unregistered method with key (:function, :calculate, :FLOWExaFMM, 0x6f3a446a03830f60) requested, maybe you need to precompile the Julia module?

  • The solution: After much debugging, I realize that FLOWExaFMM would import well as long as calculate(...) would keep the same arguments than before the modifications. As I was debugging, I went into /home/edoalvar/.julia/packages/CxxWrap/ZOkSN/src/CxxWrap.jl and added a print statement to print the hash dictionary with pre-compiled dictionaries. After adding this new line into CxxWrap.jl the issue disappeared. This leads me to conclude that CxxWrap keeps a static history of modules and their structure in somewhere in permanent memory, and changing the number of arguments of calculate(...), the function no longer matched what it had in its dictionary. Modifying CxxWrap.jl led Julia to recompile CxxWrap, forcing it to flush previous information on ExaFMM.

error when compiling ExaFMM running the script build.sh

When following the online instructions, the following error is generated (see below)

Not sure why this is since installation of CxxWrap using Pkg.add(name="CxxWrap", version="0.11.2") seems to have worked

Compiling 3d
mpicxx -DHAVE_CONFIG_H -DJULIA_ENABLE_THREADING -Dhello_EXPORTS -I/include -I/home/limas/local/julia-1.9.3/include/julia -Wunused-parameter -Wextra -Wreorder -std=gnu++1z -O3 -DNDEBUG -fPIC -ffast-math -I. -I.. -DEXAFMM_WITH_OPENMP -msse3 -mavx -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq -DNDEBUG -DEXAFMM_EAGER -funroll-loops -fabi-version=6 -Wfatal-errors -fopenmp -g -O2 -MT fmm-fmm.o -MD -MP -MF .deps/fmm-fmm.Tpo -c -o fmm-fmm.o test -f 'fmm.cxx' || echo './'fmm.cxx
fmm.cxx:10:11: fatal error: jlcxx/jlcxx.hpp: No such file or directory
#include "jlcxx/jlcxx.hpp" //C++ wrapper for julia
^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [fmm-fmm.o] Error 1
cp: cannot stat ‘build/3d/fmm’: No such file or directory
Done!

Cannot generate fmm.so file in /src folder

Hi.

this is build.sh error.

bash: julia: command not found
bash: julia: command not found
Removing existing build
rm: cannot remove 'src/fmm.so': No such file or directory
Copying files
Configuring build
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for CC... no
checking for icpc... no
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... none
checking dependency style of g++... none
checking for ftn... no
checking for ifort... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran compiler... yes
checking whether gfortran accepts -g... yes
checking for ranlib... ranlib
checking for gcc... gcc
...

Cannot make the fmm.so file.

How can I build it well ?

Unable to Compile ExaFMM running the script ,build.sh,

Hello! The command sh build.sh is throwing the following error. Please help. I am using WSL on a Lenovo Thinkpad (Windows 10).

aziz@DESKTOP-0KL87VT:~/path/to/FLOWExaFMM$ sh build.sh build.sh: 6: julia: not found build.sh: 11: julia: not found Removing existing build rm: cannot remove 'src/fmm.so': No such file or directory Copying files Configuring build checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for CC... no checking for icpc... no checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... gcc3 checking for ftn... no checking for ifort... no checking for gfortran... gfortran checking whether we are using the GNU Fortran compiler... yes checking whether gfortran accepts -g... yes checking for ranlib... ranlib checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for ar... ar checking the archiver (ar) interface... ar checking for OpenMP flag of C++ compiler... -fopenmp checking for mpiicpc... no checking for mpicxx... mpicxx checking for mpxlf90_rftn... no checking for mpiifort... no checking for mpif90... mpif90 checking for MPI_Init... yes checking for MPI_Init in -lmpi... yes checking for MPI_Init in -lmpich... yes checking for MPI_Init in -lmpicxx... yes checking for MPI_Init in -lfmpi... no checking for MPI_Init in -lmpichf90... no checking for MPI_Init in -lmpi_cxx... no checking for mpirun... mpirun checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for x86 cpuid output... unknown checking for x86-AVX xgetbv output... unknown checking for x86 cpuid 0x00000000 output... 15:756e6547:6c65746e:49656e69 checking for x86 cpuid 0x80000000 output... 80000008:0:0:0 checking for x86 cpuid 0x00000001 output... 806ec:1080800:fedab203:1f8bfbff checking for x86 cpuid 0x00000007 output... 0:9c27a9:0:bc000000 checking for x86 cpuid 0x80000001 output... 0:0:121:2c100800 checking for x86-AVX xgetbv 0x00000000 output... 7:0 checking whether SSE3 is supported by the processor... yes checking whether SSE3 is supported by the processor and OS... yes checking whether C++ compiler accepts -msse3... yes checking whether AVX is supported by the processor... yes checking whether AVX is supported by the processor and OS... yes checking whether C++ compiler accepts -mavx... yes checking whether AVX2 is supported by the processor... yes checking whether AVX2 is supported by the processor and OS... yes checking whether C++ compiler accepts -mavx2... yes checking whether AVX512-F is supported by the processor... no checking whether AVX512-CD is supported by the processor... no checking whether AVX512-PF is supported by the processor... no checking whether AVX512-ER is supported by the processor... no checking whether AVX512-VL is supported by the processor... no checking whether AVX512-BW is supported by the processor... no checking whether AVX512-DQ is supported by the processor... no checking whether AVX512-IFMA is supported by the processor... no checking whether AVX512-VBMI is supported by the processor... no checking for C++ compiler vendor... gnu checking for C++ compiler vendor... (cached) gnu checking for a sed that does not truncate output... /usr/bin/sed checking whether C++ compiler accepts -Werror=unknown-warning-option... no checking whether C++ compiler accepts -diag-error warn... no checking whether C++ compiler accepts -O0... yes checking whether C++ compiler accepts -g... yes checking whether C++ compiler accepts -Werror... yes checking whether C++ compiler accepts -check all... no checking whether C++ compiler accepts -debug all... no checking whether C++ compiler accepts -diag-disable remark... no checking whether C++ compiler accepts -fmudflap... yes checking whether C++ compiler accepts -fno-strict-aliasing... yes checking whether C++ compiler accepts -fsanitize=address... yes checking whether C++ compiler accepts -fsanitize=leak... yes checking whether C++ compiler accepts -fstack-protector... yes checking whether C++ compiler accepts -ftrapuv... no checking whether C++ compiler accepts -ftrapv... yes checking whether C++ compiler accepts -traceback... no checking whether C++ compiler accepts -Wall... yes checking whether C++ compiler accepts -Warray-bounds... yes checking whether C++ compiler accepts -Wbad-function-cast... no checking whether C++ compiler accepts -Wcast-align... yes checking whether C++ compiler accepts -Wcast-qual... yes checking whether C++ compiler accepts -Wextra... yes checking whether C++ compiler accepts -Wfatal-errors... yes checking whether C++ compiler accepts -Wformat=2... yes checking whether C++ compiler accepts -Wformat-nonliteral... yes checking whether C++ compiler accepts -Wformat-security... yes checking whether C++ compiler accepts -Winit-self... yes checking whether C++ compiler accepts -Winline... yes checking whether C++ compiler accepts -Wmissing-format-attribute... yes checking whether C++ compiler accepts -Wmissing-include-dirs... yes checking whether C++ compiler accepts -Wmissing-noreturn... yes checking whether C++ compiler accepts -Wnested-externs... no checking whether C++ compiler accepts -Wno-missing-field-initializers... yes checking whether C++ compiler accepts -Wno-overloaded-virtual... yes checking whether C++ compiler accepts -Wno-unused-local-typedefs... yes checking whether C++ compiler accepts -Wno-unused-parameter... yes checking whether C++ compiler accepts -Wno-unused-variable... yes checking whether C++ compiler accepts -Wpointer-arith... yes checking whether C++ compiler accepts -Wredundant-decls... yes checking whether C++ compiler accepts -Wreturn-type... yes checking whether C++ compiler accepts -Wshadow... yes checking whether C++ compiler accepts -Wsign-compare... yes checking whether C++ compiler accepts -Wstrict-aliasing... yes checking whether C++ compiler accepts -Wstrict-overflow=5... yes checking whether C++ compiler accepts -Wstrict-prototype... no checking whether C++ compiler accepts -Wswitch-enum... yes checking whether C++ compiler accepts -Wuninitialized... yes checking whether C++ compiler accepts -Wunreachable-code... yes checking whether C++ compiler accepts -Wunused-but-set-variable... yes checking whether C++ compiler accepts -Wwrite-strings... yes checking whether C++ compiler accepts -Wno-error=missing-field-initializers... yes checking whether C++ compiler accepts -Wno-error=overloaded-virtual... yes checking whether C++ compiler accepts -Wno-error=unused-local-typedefs... yes checking whether C++ compiler accepts -Wno-error=unused-parameter... yes checking whether C++ compiler accepts -Wno-error=unused-variable... yes configure: OpenMP : yes configure: MPI : yes configure: CUDA : yes configure: FP32 : no configure: SIMD : -msse3 -mavx -mavx2 configure: Assert : yes configure: Debug : no configure: Vendor : gnu configure: CXX : mpicxx configure: FC : mpif90 configure: CXXFLAGS : -g -O2 configure: FCFLAGS : -g -O2 checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating 3d/Makefile config.status: creating config.h config.status: executing depfiles commands Compiling 3d mpicxx -DHAVE_CONFIG_H -DJULIA_ENABLE_THREADING -Dhello_EXPORTS -I/include -I/julia -Wunused-parameter -Wextra -Wreorder -std=gnu++1z -O3 -DNDEBUG -fPIC -ffast-math -I. -I.. -DEXAFMM_WITH_OPENMP -msse3 -mavx -mavx2 -DNDEBUG -DEXAFMM_EAGER -funroll-loops -fabi-version=6 -Wfatal-errors -fopenmp -g -O2 -MT fmm-fmm.o -MD -MP -MF .deps/fmm-fmm.Tpo -c -o fmm-fmm.o test -f 'fmm.cxx' || echo './'fmm.cxx fmm.cxx:10:11: fatal error: jlcxx/jlcxx.hpp: No such file or directory 10 | #include "jlcxx/jlcxx.hpp" //C++ wrapper for julia | ^~~~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:737: fmm-fmm.o] Error 1 cp: cannot stat 'build/3d/fmm': No such file or directory Done!

I added the latest CxxWrap package using ,add CxxWrap, and then tried the manual method using this link,
[https://nbviewer.org/github/byuflowlab/FLOWVPM.jl/blob/master/docs/installation-linux.ipynb]
but shows the following error

,(@v1.9) pkg> add [email protected]
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package CxxWrap [1f15a43c]:
CxxWrap [1f15a43c] log:
├─possible versions are: 0.7.0-0.13.4 or uninstalled
├─restricted to versions 0.11.2 by an explicit requirement, leaving only versions: 0.11.2
└─restricted by compatibility requirements with libcxxwrap_julia_jll [3eaa8342] to versions: [0.7.0-0.9.1, 0.12.0-0.13.4] or uninstalled — no versions left
└─libcxxwrap_julia_jll [3eaa8342] log:
├─possible versions are: 0.9.7 or uninstalled
└─libcxxwrap_julia_jll [3eaa8342] is fixed to version 0.9.7,

Please help me resolve this issue to proceed with the installation.

Windows compatibility

I was unable to install this package on Windows 10. I worked through some issues compiling/linking the C++ dependency, but was unable to load it in Julia.

I tried using MinGW 64-bit to run the build.sh script (which calls ./configure and make). At first, there was a configure error regarding OpenMP:
configure: error: don't know how to enable OpenMP
and this error for finding an MPI library:
configure: error: could not find mpi library for --enable-mpi

I followed these instructions for combining MSMPI with GCC. I made the following changes to the build.sh script to link against libmsmpi.a:
image

Next, there was an error due to a space in the MinGW installation path:
image (162)
This was resolved by replacing all $(SHELL) with "$(SHELL)" in Makefile.in

Next, the Makefile generated from configure has the JLCXX_H include path commented out
image (164)

Finally, srand48 and drand48 functions do not exist on Windows:
image
This can be addressed via:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/9356f151-51d2-412d-8889-d53230cc6ec9/porting-srand48-and-drand48-of-unix-like-platform-based-source?forum=vclanguage

After all those changes, I was able to successfully compile, link, and generate fmm.so. Unfortunately, it does not load in Julia:
image (166)
I had to add the file extension to @wrapmodule(joinpath(module_path, "fmm")) --> @wrapmodule(joinpath(module_path, "fmm.so.exe"))

Something wrong with FLOWExaFMM

When I try to precompile FLOWExaFMM, something wrong like this:

[ Info: Precompiling FLOWExaFMM [a07d1f4e-0e34-4d8b-bfef-e5b961477d34]
ERROR: LoadError: could not load library "C:\Users\G.julia\packages\FLOWExaFMM\SwcNX\src\fmm"
The specified module could not be found.

What should I do next?
Thank you so much!

Install on Ubuntu

Hi,

I experiencing the following error when installing on Ubuntu 18.04.6 LTS when running the "test FLOWVPM"

compile

The relationship between the SGS and body.J

The body.J is defined as a 3x3 Jacobian matrix, while SGS is the sub-grids scale contributions, a 3-dimensional vector.
Why after the SGS contirbution is calculated, Assign SGS to body.J for use by FLOWVPM ( Bi[i].J[0] += SGS[0]; Bi[i].J[1] += SGS[1]; Bi[i].J[2] += SGS[2];)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.