Programming :: Linking Of Fortran Executable Taking Exorbitant Amounts Of Time?
Mar 24, 2010
The issue I am currently facing is more of an annoyance / curiosity, and it may not even be a problem, but it sure feels like one. Background: I am becoming a computational chemist (grad school begins in the fall) and the code I run is all in fortran. I am currently compiling with gfortran. When I compile the code (on a box running ubuntu server), everything appears to compile fine, but the linking stage is taking five to ten minutes. I ran the time command while making it and got the following results.
Quote:
time make
gfortran -c -O3 -fomit-frame-pointer -finline-functions -ffast-math suijtab.f
Linking testCompile ...
done
[code]...
I just don't understand why it is taking 5 minutes of real time if it only takes 10 - 15 sec of system time?
View 4 Replies
ADVERTISEMENT
Dec 17, 2009
I have 3 c++ files, classdef.h (header file with class definition), methods.cpp (class methods) and program.cpp - the program itself. Both .cpp files have
Code:
#include "classdef.h"
in files. How I can link the files together and compile them in one executable program? I am using Geany IDE for coding.
View 4 Replies
View Related
May 19, 2011
i am graduate student and my X colleague gave me this Fortran 77 program to run my result files with. She is no longer reachable. I compiled the following program with gfortran, it compiled well but, when i run it, gave me end of file error. My output file (which is the input file for this program (DFILE1) ) has about 78,000 lines of velocities of atoms (Vx, Vy, Vz with 1000 steps.. an example of some of the atom's velocities in the 1st step is given at the end of this program). I will be highly obliged if any one can help me with this.I run this program on opensuse linux 11.3 version /32 bit/i586
error message:
Code:
At line 124 of file v.autocorrelation.f (unit = 10, file = 'DFILE1')
Fortran runtime error: End of file
Code:
PROGRAM TCORR
COMMON / BLOCK1 / STORX, STORY, STORZ
COMMON / BLOCK2 / VX, VY, VZ
COMMON / BLOCK3 / VACF, ANORM
C *******************************************************************
code....
View 6 Replies
View Related
Jun 2, 2010
I want to find the cpu time taken by an executable to run.. the executable is writting the output to a file. i want to write the time takem by cpu to the same output file.
like:
abc is my executable which is taking input as input file and writing the result in output file.. i want to append cpu time information in the same file. can i do it with time command?
View 5 Replies
View Related
Mar 31, 2011
Iam using socket programming in one of my problem. The scenario is like this.
=>one module is working as a socket server(process p1) is able to handle client sockets on that port.
=>one module is working as socket client (process p2) is connected to server socket and Tx/Rx data on this socket. This module has some more threads, based on received data from server socket it will connect to http on other thread and get information...
=>one more module is working as socket client (process p3) is also connected to server socket and doing some other transactions.
Here my problem is when in presence of p2, p3 http connection taking more time than the expected. If we wont start p3(means only one server-client socket) then http connection is fast enough.
View 1 Replies
View Related
Apr 18, 2010
I have written an OpenGL based program which uses i.a. libjpeg that I want to link statically so I can send it to someone who doesn't have all the libraries needed installed to allow for a dynamically linked executable to run. As such I tried with giving the [b]-static[b] parameter to gcc.
Code:
x86_1$ make
gcc -O3 -c jpegloader.c
gcc --std=c99 -O3 -c --std=c99 -I/usr/include -L/usr/X11R6/lib main.c
[code].....
Why would gcc claim that I'm missing GLUT? This works perfectly fine when I do dynamic linking -- i.e. omitting the -static argument.
View 13 Replies
View Related
Aug 6, 2010
trying to build Eduke32 from source but I receive the following error:
Code:
[priit@T16 eduke32]$ make
Build started using "gcc -fomit-frame-pointer -funswitch-loops -O2 -fno-stack-protector -W -Wall -Wimplicit -Werror-implicit-function-declaration -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -Isource -Ibuild/include -Isource/jmact -Isource/jaudiolib
[code]...
View 2 Replies
View Related
Aug 2, 2010
Though under Windows my Internet connection works fine and fluent under Debian linux it connects and disconnects repeatedly at short amounts of time. It didn't used to be like that but at a certain time i was forced to install pppoeconf to get my DSL internet connection going, after that even if i've uninstall pppoeconf and now i'm only using nm-applet to monitor my internet connection i still have this annoying problem.
View 1 Replies
View Related
Feb 2, 2011
I tried linking my MSN account to Empathy Messenger for the first time - all went well But.I went to my friends house the next day and he told me that my MSN account status on his Windows PC MSN was continuously logging in and out. My computer had been switched off all morning and only used the night before. I went home logged on to Ubuntu 10.10 Empathy and I was logged off - I logged on and then logged off and rang my friend he told me that My status was now showing "That I was away"
I have dual boot system (xp) I went and changed my MSN password and question- should I be concerned is this a known software glitch/ security issue?
View 1 Replies
View Related
May 3, 2010
in ubuntu 10.04 After logging in t All I had was the wallpaper & my widgets for around a minute, and then the usual upper and lower panels appeared.. didnt had this problem in 9.10
View 4 Replies
View Related
Jul 15, 2010
while installation of debian 5 from small cd ... does configuring apt take a lot of time!!! installing debian for the first time.
View 1 Replies
View Related
Mar 26, 2010
I have just made a clean install of Ubuntu 9.10 and after installing all updates, GDM is taking a long time (about one minute) to come up after a clean boot, resulting in a regular console prompt.
If I issue "sudo service gdm start" it does come up promptly.
What can I do? Where can I see startup logs to try and identify any problems?
View 5 Replies
View Related
Nov 7, 2010
My ubuntu(10.10) installation takes a relatively longer time (90 seconds) to boot. I think part of the problem might be related to an error message during boot related to usb drivers.
Code:
[2.717076] usb 4-1: new low speed USB device using ohci_hcd and address 2
[3.244051] usb 4-2: new full speed USB device using ohci_hcd and address 3
[12.029046] /build/buildd/linux-2.6.35/drivers/hid/usbhid/hid-core.c: usb_submit_urb(ctrl) failed
I have attached the relevant part of dmesg output also.
View 6 Replies
View Related
Dec 8, 2010
I compressed a directory containing many image files. The directory amounted to 5.3gig. Compressed with TAR using .tgz the compression took a couple minutes at most and compressed down to 4.3 gig. Compressed using .bz2 the compression took about 90 minutes and compressed down to 4.2 gig. Hardly worth the extra time. Do these numbers look normal to you?
View 1 Replies
View Related
Jan 3, 2011
I don't know if it is just me but it seems like Ubuntu takes a long time to start up programs. For example, it takes me 10 seconds to start up "Ubuntu software center". My computer is a relatively fast one. It has 4 gb of ram and an intel core duo processor. I didn't install that many programs. Does anyone know what might be the source of the problem and how to fix it?
View 6 Replies
View Related
Jan 25, 2011
Quote:
#!/bin/ksh
DBcounttry_finalnofunc()
{
[code]....
View 6 Replies
View Related
Jul 24, 2011
I purchased a special collection boxed Superman set for my 10 year old daughter in May for her birthday and recently some second hand Zumba DVD's. My daughter is quite hard on DVD's. So I have as asked her to wait whilst I have them copied.
I will be using the Zumba regularly and know they will suffer so want use copies and save the originals.
I have done some reading and I think I have everything installed correctly.
I tried K9copy, but it immediately closed. I then tried K3b and noticed I needed 99GB of space. (I wonder if that is why K9copy closed?) The only thing I have that big is my backup external drive.
So I connected it up. I only had about 44 GB of space on it. I ticked for half the tracks which needed less space. So now there was enough space. I then clicked on rip DVD. It has been doing it continuously for 2 nights and is up to 24%.
So at this rate it will take a week to copy half a DVD to my drive and then I have to burn it to a DVD. This can't be right, can it?
I am running OpenSuse 11.3
View 5 Replies
View Related
Dec 1, 2010
i have installed ubuntu ultimate edition 10.04 in my toshiba c650 recently,however it is taking too long before it startup. 2 when i log off the cursor still remain untill all power have been discharged. what could be the problem
View 5 Replies
View Related
Jun 10, 2010
I am backing up data from a remote server onto a local ntfs partition. It seems that the rm -rf and cp -a commands are taking a long time to complete in what should be short, incremental backups.Has anyone had similar problems when backing up to an ntfs partitionHere is my rsnapshot.conf:
Code:
#################################################
# rsnapshot.conf - rsnapshot configuration file #
[code]....
View 5 Replies
View Related
May 27, 2010
I am using KVM and created four guest Operating systems on it.The server host is Ubuntu 10.04.I am using 4 websites in a reverse proxy environment.One of our website is running on CentOS VM.Right now there is no traffic on the website static HTML pages.I do not have any clue as why it was taking longer time to be accessed.
View 2 Replies
View Related
Apr 15, 2009
I'm trying to call some Fortran 95 code in C, but I'm having problems with integers not having the same value in C as in Fortran, and changing values upon each run of the program. I think it has to do with the integer type, but I don't know how to fix it. I'm running Gentoo x86. Here are the files I've got:
foo.c:
Code:
#include <stdio.h>
extern int qux_();
main() {
[code]....
View 2 Replies
View Related
Sep 29, 2010
There are examples everywhere about calling f77 subroutine from IDL, but I have not found any material about IDL calling fortran written in f90 way(free style). I tried the following example, but write the subroutines in free style. When I run the makefile, it gives an error 'undefined reference to main_'.
Code:
SUBROUTINE SUM_ARRAY(argc, argv) !Called by IDL
INTEGER*4 argc, argv(*) !Argc and Argv are integers
j = LOC(argc) !Obtains the number of arguments (argc)
[code]....
View 1 Replies
View Related
Apr 29, 2010
I have a C code and assembly (nasm) code and I am not able to find how to link them each other. Here are the codes :
NASM side:
Code:
global_maxofthree
section .text
_maxofthree:
[code]....
I am using ubuntu 9.10 and my NASM version 2.05.01 compiled on Nov 5 2008.
View 4 Replies
View Related
Jul 8, 2010
It takes an exceptionally long time for basic graphic actions to occur like switching tabs in Firefox, redrawing windows that have been (un)maximized/minimized, and switching between windows. My video card is not a bad one, a GeForce 9500 GT and Windows handles it just fine. I'm using the current NVIDIA drivers 265.35. It seems like if I can't get some better response time I'll be using Windows much more.
View 3 Replies
View Related
May 20, 2011
When I reinstalled ubuntu I chose to encrypt my home folder (something that i've never done before) but now that I know it doesn't really make a difference i'd like to decrypt it because the .encryptfs folder is taking up so much space i'm getting notifications every time I log in.
View 7 Replies
View Related
Jan 21, 2011
I want to call a subroutine in Fortran 90 from a c++ code. I can do it, when the fortran code have no module. But i need to call the subroutine in a fortran code that have an module. I have a simple program that shows my problem. The Fortran code is:
Code: !add2.f90
Module add2
Implicit none
Contains
[code]....
collect2: ld returned 1 exit status I Dont know where is the problem. Maybe it is in the call of the function. I found that the syntax have this form: extern void __namemodule__NMOD_namesubrutine(arg)
View 6 Replies
View Related
May 16, 2010
I have two arrays of data, called data1.dat and data2.dat. each contains 60 data. What I want to do is to compare the data in each file and write the counting into bins. It goes like this. First, take the first data in data1.dat file and compare with the 60 data in data2.dat file. If there is any data which is same with the data in data1.dat then it count in bin. The total bins are also 60. Next it goes to the second data in data1.dat and compare with all the 60 data in data2.dat. If there is any data same then it add in second bin. And it repeats to all the data in data1.dat
View 3 Replies
View Related
Jun 10, 2009
I'm not a Fortran coder but I need to call the sub-routine ADAPT.f from a c code.This subroutine calculates a multiple integral of a given function.My problem is that the c code works with no problem in a 32 bit machine but it does not in a 64 bit machine, and the problem seems to be related to adapt, which calculations gives a NA rather than the result of integration.Since fortran is quite obscure for me, I don't know why is this happening. Maybe I should change some data type (from real to double), but I'm not sure. Does anyone have a clue?
View 3 Replies
View Related
Jun 29, 2011
I have a 50 file name NSSAVE0001.vtk to NSSAVE0050.vtk.Do I have to manually type individually command to open each file or can I have a loop to open file?
View 3 Replies
View Related
Aug 26, 2010
I have a program which reads some parameters in from an input file before solving a differential equation. This program compiles fine, I'm using Numerical Algorithms Group (NAG) libraries to solve the differential equation so I'm also the NAG compiler called nagfor.
The namelist I have is declared as follows:
And the input file is:
When I run the code I get the following error message:
I really can't see what's wrong with this code.
Also, I'm using Fedora 11, and running the code in tcsh if this is relevant.
View 1 Replies
View Related