-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buildtools for compiling dart as a library #702
Conversation
developer test builds dart as a static library library is libdart.a quickbuild.sh clean removes libdart.a rather than *.a since we do not want to remove any other static libaries some has built
assumes library is called libdart.so
…renz_96 compiling everything with -fPIC
@hkershaw-brown I'm getting some errors when running test_libraries.sh
I'll keep looking into these, but I thought I'd let you know now to see if you might already know the causes. |
@mjs2369 are you running with a gfortran mkmf.template but the intel module on Derecho? |
Yep, duh. Though I did have to add the mpif08 argument to lines that run quickbuild (22, 36, and 44) in test_libraries.sh to get it compile with gfortran. But the script is still erroring out while trying to run filter for the first time on line 62 (the no lib build):
I haven't been able to figure out why this is happening yet |
Some last questions/comments other than the error are:
|
Are you trying to run an mpi job on the Derecho login nodes? |
So this isn't a feature for general use. It would be for people developing tools that use DART. I think the build system docs (developers section) is the place for it.
No we're not supporting DART as a library for windows. If people want to use DART on windows, then I'd recommend using WSL. |
@hkershaw-brown |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good; the library builds and developer test to check that they are bitwise work well. Approved
Description:
Buildtools for compiling dart as a library (libdart.a or libdart.so)
SiParCS 2024 Anh Pham and Suman Shekhar students used dart as a static library.
There are other people interested in having dart as a library, so this provides buildtools so they don't have to create Makefiles by hand.
This pull request has a developer test directory 'library' which has a shared lib build and a static lib build and a little test script to demo building and linking filter.
Not sure what level of docs to add, maybe just a section in DART build system for people who want to play with a library.
Fixes issue
no issue
Types of changes
Documentation changes needed?
Tests
DART/developer_tests/library/test_libraries.sh does a bitwise test for filter (regular build vs. static library vs shared library)
edit: also did a paranoia check that -fPIC was bitwise for a regular build of filter.
Checklist for merging
Checklist for release
Testing Datasets