Skip to content
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

WIP: CMakeLists.txt to support building with cmake #58

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

alecjacobson
Copy link

I'm trying to create a CMakeLists.txt configuration for ADOL-C. Specifically my goal is to get ADOL-C compiling and running on a modern mac with cmake.

This would also hopefully fix #45

So far, I've got the main library files and almost all of the examples compiling.

Unfortunately, even the simplest program:

#include <adolc/adolc.h>
int main()
{
  adouble x;
}

will crash with memory issues:

frame #6: 0x000000010003b6f0 detexam`clearTapeBaseNames at taping.c:363:6
   360 	    int i;
   361 	    for(i=0;i<4;i++) {
   362 		if (tapeBaseNames[i]) {
-> 363 		    free(tapeBaseNames[i]);
   364 		    tapeBaseNames[i]=0;
   365 		}
   366 	    }
(lldb) 

all the examples crash on other runtime memory violations.

I'm sure there's some configuration missing from my translation from automake/configure, but I admit those are impenetrable for me to understand.

I'm not sure I'll be able to complete this, but if others have hints or want to take off from where I've left it then I've placed it here as a work in progress.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@awalther1
Copy link
Contributor

Hi we are completely aware of the fact that our build system is a bit outdated. However, with the rather complicated building of ADOL-C with all the corner cases so far we shied away from setting up a cmake for ADOL-C

Now, it might be that we have a very simple version of cmake for ADOL-C in the near future. You will find it here as soon as possible.

@TimSiebert1
Copy link
Collaborator

@alecjacobson did you try to build with the current CMakeLists.txt?

@alecjacobson
Copy link
Author

alecjacobson commented Nov 15, 2024 via email

@TimSiebert1
Copy link
Collaborator

No worries. We will improve the next days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ADOL-C installation macbook
4 participants