Ubuntu :: Compile Parallel C Program With MPI Codes?
Jun 20, 2011
I have a simple testing program like this:
/*The Parallel Hello World Program*/
#include <stdio.h>
#include <mpi.h>
[code]...
My program is, I can't compile this program using gcc, and I can't find something like pgcc in ubuntu. How should I compile this program? After compiling, what should I do to run this program? Can I use something like mpirun to run it? I want to try to use both cores of my computer to run it and make it shows Node 1 also besides Node0.
View 3 Replies
ADVERTISEMENT
Aug 28, 2010
I think I put this in the wrong place
View 1 Replies
View Related
Mar 13, 2011
I am a student taking part in a comptition. We have a set of questions to complete within today. Can anyone please help me out with it. I have a custom written "echo" program in C, running on port number "1220" which echoes back the first 16 characters of whatever is given as the first command line argument. But somehow, my brother had got unauthorized remote root access. The program is given below. How did he do it? Please give the exploit code and explain how it works.
#include
#include
void echo(char* input) {
[code]....
View 2 Replies
View Related
Dec 11, 2010
I am trying to write to the parallel port pins from a Perl program running Ubuntu Linux, to light up led's on a bread board. I've already accomplished this on this same box using a C program, but I cannot get my code below to work. I believe the problem is with the line:
$parport = Device::ParallelPort->new('auto:0');
I've tried different variables between the ('') ticks, but nothing has worked. I use Perl on my web pages for forms, but this has stumped me.
Code is below:
#!/usr/bin/perl require "subparseform.lib"; &Parse_Form; print "Set-cookie:
cart_id=1234; user_id=123;
"; print "Content-type: text/html
"; use strict; use CGI; use Device::ParallelPort;
# use Device::ParallelPort::drv; # use Device::ParallelPort::drv::linux # use Device::ParallelPort::drv::parport
# Set up your parallel port object and tell it what driver to use.
#my $parport = Device::ParallelPort->new('auto:0'); print "It works!!!";
View 1 Replies
View Related
Jul 21, 2011
I'm new to linux, and I've been following a paper [URL] to build a linux cluster using RedHat 5. I'm up to part VII step 5, installing the message-passing software MPICH2-1.4, and I'm not quite sure how to "execute the compile command 'make' to generate the binary codes of MPI."
View 13 Replies
View Related
Jun 27, 2010
I need to make some C program under linux to make some scripts that can talk to my Server's Parallel port by sending some quare signal as high or low, so what i can do ?
View 4 Replies
View Related
Jan 4, 2010
I can't compile a C program form terminal using gcc by Code Blocks 8.02 is able to do so.
Code:
#include<stdio.h>
int main(void)
{
printf("Hello World
[Code]....
View 9 Replies
View Related
Apr 20, 2011
im writing from ubuntu i have made a c program and im wondering how can i compile it for being able to run on mac
View 2 Replies
View Related
Jul 18, 2011
I followed the steps from the this website [URL]..but after I run: sudo make I got this output:
[Code]...
View 2 Replies
View Related
Jan 24, 2010
Following is the IDL program found on the internet but i dont know how to compile and execute (even dont know can it be done under linux).
Code:
View 9 Replies
View Related
Jul 21, 2011
when I try to compile a program that uses SFML with g++, this appears:
Code:
/usr/local/include/SFML/Window/OpenGL.hpp:47:23: fatal error: GL/gl.h: No such file or directory
View 2 Replies
View Related
Jan 20, 2010
I am trying to compile a very simple 32-bit program on my 64-bit fedora 12 install, but it won't let me.
I get this error.
I tested it on the school server (64 bit Red Hat Server), and it compiled flawlessly without any warnings. I think I am missing some libraries, but don't know which.
View 4 Replies
View Related
Jun 20, 2011
I was using my college's unix server (ubuntu presumably) to compile programs in the laboratory. Now, i have installed Opensuse 11.4 with gnome3. I have installed the Developers pattern, and almost all the packages that looked relevant (which came up when i searched for libgc , gcc, and all). Now, i cant compile a program:
Code:
/*program to test file I/O and getch/putch functionaliny in gcc*/
#include<stdio.h>
int main()
{ FILE *fi;
char ch;
[Code]....
View 1 Replies
View Related
Dec 26, 2010
My Fedora 14 have installed gcc-4.5.1-4.fc14.x86_64,qt-4.7.1-5.fc14.x86_64,
I don't know how to use g++ to compile QT program.
Do I need to set PATH or something else?
View 5 Replies
View Related
Dec 9, 2010
from the commend line i went to compile the c program by giving the commend "gcc first.c -o first" but the commend line showing gcc is not found. iam using fedora 13 what can i do to compile the program . the program i used to compile is below
#include<stdio.h>
main()
{
printf("hello word
");
}
View 1 Replies
View Related
Apr 21, 2010
i am not able to compile my test program which uses gtkmozembed.As i am very new to this, i dont know which are the packages to be installed and how to compile
[Code]...
View 1 Replies
View Related
Mar 16, 2011
What are the steps to compile a ns2 program?
View 2 Replies
View Related
Jul 25, 2010
I want to cross compile gtk program from linux to arm. I am using ubuntu10.04. How can I cross compile it for arm. I have tried this but this is my output:
root@habesh-laptop:~/habesh/gtk# /root/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc -o trail1 base1.c 'pkg-config --cflags --libs gtk+-2.0'
cc1: warning: include location "/usr/include/gtk-2.0" is unsafe for cross-compilation
cc1: warning: include location "/usr/include/atk-1.0" is unsafe for cross-compilation
cc1: warning: include location "/usr/include/cairo" is unsafe for cross-compilation .....
View 4 Replies
View Related
Feb 10, 2010
I have a c program and its related libraries for Linux. But, I need a EXE file to run in windows.
please let me know how to compile the program for windows
View 8 Replies
View Related
Apr 6, 2010
I am new to Linux, and I just tried to compile a program (powertab tools) from source. I'm having som problems doing that. The "./configure" command works fine, but when I run "make", it gives an error:
Code:
seppe@Thuis:~$ cd ptabtools-0.5.0
seppe@Thuis:~/ptabtools-0.5.0$ ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
[Code]...
View 1 Replies
View Related
Jun 20, 2010
since last days I am trying to run a simple c / cpp program using eclipse in my newly installed fedora 13, but every time it says either "program file not specified" or "binary error"
View 10 Replies
View Related
Mar 14, 2009
I have used a new header file named curses.h in my program.when i try to compile my program it shows me the following error "No such path or directory".What may be the problem?A part of the program is shown below
#include<unistd.h>
#include<stdlib.h>
#include<curses.h>
[code]...
View 2 Replies
View Related
May 13, 2010
I had wrote a program in the vi editor using the command vi [filename.cc] in open terminal and now i need to compile n run it
View 3 Replies
View Related
May 26, 2010
I am using the C++ compiler G++ to compile my programs on Linux Mint 8 - Gnome.
I recently installed QT and when I tried to compile a simple "Hello World!" program it gave me this error:
Quote:
This is the code in HelloWorldQt.cpp:
Code:
I have tried using GTK instead but I get a similar error.
View 7 Replies
View Related
Feb 26, 2010
I want to capture the ip packets, so i installed
I am getting the following errors.
View 7 Replies
View Related
Apr 15, 2010
I do not even know where to begin, and what logs / errors show: I am completely confused in the variables, etc.I can not install PAL Like all successful, and the program to compile, but I can not verify this.I tried premake and one Engine ODE - then I get an error segmentation, when you start paldemo.If I use cmake, then get this:
Code:
...
[ 46%] Built target libpal
[code]....
View 1 Replies
View Related
Mar 14, 2011
I would like to modify my init.gz and add udp-sender to this image. After copying the program compiled on my system to init image I have error when I try run udp-sender: udp-sender not found When I checked ldd I saw that the some libraries are missing. I copied them from my system but still got the same error. how can I compile program for my init.gz?
View 3 Replies
View Related
Jun 17, 2010
i just grabed a book and wrote a program and tried to compile it using 'javac' and everytime i'm getting this error:
javac Example.java
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../lib64/crt1.o: In function `_start':
/usr/src/packages/BUILD/glibc-2.9/csu/../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'
[Code]....
View 3 Replies
View Related
Jul 6, 2010
When I compile a C program in Fedora Core 12 using the following format: gcc -o program -static program.c
I get an error:
What do I need to do to make the program compile correctly with the -static flag ?
View 1 Replies
View Related
Nov 15, 2010
I want to compile a program with the source I already have but I have to add an option. When I run the command ./autogen.sh the terminal returns aclocal not found. Is it a package or something i have to install?
View 6 Replies
View Related