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

Building problem on Linux #96

Closed
ATM-Jahid opened this issue Sep 19, 2019 · 9 comments
Closed

Building problem on Linux #96

ATM-Jahid opened this issue Sep 19, 2019 · 9 comments
Assignees

Comments

@ATM-Jahid
Copy link

After executing make in the NJOY21/bin directory, the building process gets stuck at 84%. My system crashes at this point. The last thing that the shell shows is the following.

[ 84%] Building CXX object CMakeFiles/njoy21.dir/src/main.cpp.o

@jlconlin
Copy link
Member

When you say it gets "stuck", what do you mean? How long is it stuck? Does it make the njoy21 binary?

@jlconlin jlconlin self-assigned this Sep 19, 2019
@ATM-Jahid
Copy link
Author

By stuck, I mean my system becomes unresponsive totally.

% sudo make
[ 21%] Built target utility 
[ 78%] Built target njoy 
[ 82%] Built target njoy_c_bindings 
[ 84%] Building CXX object CMakeFiles/njoy21.dir/src/main.cpp.o

After that I have to restart it.

Right after executing make command, everything seems normal but after reaching that 84%, CPU usage skyrockets (I am assuming ram usage does too) and at some point my laptop becomes unresponsive to anything. The result is the same when I run more than one job (make -j 4)at a time.

What is the destination of the njoy21 binary? I have checked /usr/bin/ and /usr/sbin/. There is no njoy21 file there.

@jlconlin
Copy link
Member

@ATM-Jahid If you have a slow machine, or if there isn't much memory, this could cause some problems. NJOY21 does require a fair amount of memory to compile. It would be easier on the machine if you just did one job (make -j1).

@ATM-Jahid
Copy link
Author

Well, I am not sure if memory is the problem. I ran make and make test on the same machine before.

@jlconlin
Copy link
Member

make test likely uses less memory than make does.

@ATM-Jahid
Copy link
Author

I remember running make that time. It went smoothly. I was running other programs in parallel and I didn't face this sort of problem then.

And, exactly how memory intensive is the process?

@jlconlin
Copy link
Member

I don't know exactly off the top of my head. I wouldn't be surprised if it consumed up to 4 GB.

@marton384
Copy link

Hey guys! I managed to compile/install the program after solving several issues with permissions and config commands. Yet when I try to run an input I get the following error message:

reconr... 0.0s
At line 212 of file /home/base/NJOY21/subprojects/njoy/src/util.f90 (unit = 20)
Fortran runtime error: Cannot open file 'tape20': No such file or directory

This is not clear so far: should I provide this 'tape20' file or the program was supposed to find it somewhere? When I run the 'make test' command everything is OK, but I cannot run any other input because the code cannot open the tape the input refers to. I checked the NJOY2016 manual but there is no information on such issues. Thanks!!!

@jlconlin
Copy link
Member

jlconlin commented Mar 3, 2020

@marton384 In short, yes you need to provide your own tape20, this is generally (but not required) to be the evaluated file (i.e., ENDF-formatted file).

@jlconlin jlconlin closed this as completed Mar 3, 2020
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

No branches or pull requests

3 participants