atoms-ufrj / emdee Goto Github PK
View Code? Open in Web Editor NEWEmDee: A Molecular Dynamics Laboratory
License: GNU General Public License v3.0
EmDee: A Molecular Dynamics Laboratory
License: GNU General Public License v3.0
i believe we have two macro options
touch some global system configs which require sudo:
e.g. current approach:
sudo make install
cp $(LIBDIR)/libemdee.* /usr/local/lib/
cp $(INCDIR)/emdee.* /usr/local/include/
ldconfig
keep the files locally and instruct the linker of tests and jobs on how to find them at compile time and at run time
2a) in fortran and c, to find them at compile time we can use -I$(libdir) as a linker option
2b) to make the executable able to find them at run time we can use something like
2b_i)
i will implement it specifically for our makefile soon
2b_ii) compile using -static
2b_iii) in julia, as julia is not compiled/linked we will have to deal with its package management system
2a_iii_1 ship lib to /home/user/.julia/version/EmDee/lib/libemdee.so
Libdl.dlopen("/home/user/.julia/version/EmDee/lib/libemdee.so")
ship wrappers in EmDee.jl so any script.jl can run "using EmDee"
ship it to to ~/.julia/v0.4/EmDee/src
2a_iii_2 include in julia source:
Libdl.dlopen("EmDee-source-folder/lib/libemdee.so")
?
Julia include path for USING MODULE
abrir pasta dos packages:
~/.julia
colar EmDee.jl em ~/.julia/v0.4/EmDee/src
?
Julia load shared library EmDee.so
http://docs.julialang.org/en/release-0.4/manual/modules/
http://docs.julialang.org/en/release-0.4/stdlib/libdl/
!
I'm currently trying and will submmit an approach that combines Libdl.dlopen, Libdl.dlsym, and a home made macro from http://docs.julialang.org/en/release-0.5/manual/calling-c-and-fortran-code/
this decision is relevant for both the EmDee library as for the gfortran libraries, both can be linked either statically or dinamically
Obs: is there a reason to make libgfortran statically linked or should i find the right options to make it dinamically linked?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.