LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

How to compile and run MPI Program

Posted 02-29-2012 at 10:59 PM by krish_iitd

For compiling in C language
  • mpicc.openmpi program.c -o output

/*program.c is the name of the program you have done*/

For running with five processes and multiple host
  • mpirun.openmpi -np 5 --hostfile host_file_name output

/*Where host_file_name is the host file which contains the name of hosts with line break for each host e.g.
localhost
host1
host2
host3*/
LQ Newbie
Posted in Uncategorized
Views 396 Comments 0 krish_iitd is offline
Old

Am Wonderin' ...

Posted 02-29-2012 at 03:19 PM by ktask

about re-invention of wheel. Let's see about LQ blogs.
LQ Newbie
Posted in Uncategorized
Views 360 Comments 0 ktask is offline
Old

Hplip

Posted 02-28-2012 at 09:11 PM by lisle2011

I just finished being frustrated installing software that lets my LaserJet CP1525nw work; and as a bonus the color is really good for me.

But I have a little niggle after downloading stuff from the HPLIP site and I did download and read everything. I discovered that following compile instructions failed.

A person must configure as root, then run make as a regular user. I had my doubts and after make spewed about six lines of text everything came to a halt because the...
Member
Posted in Uncategorized
Views 3820 Comments 1 lisle2011 is offline
Old

VBS equivalents of some Linux date command format sequences

Posted 02-27-2012 at 11:13 PM by catkin

Here are some Visual Basic Script statements that generate the effect of the Linux date command used with format sequences %y, %Y, %b, %B, %n, %a, %A, %d, %H, %I, %p, %M and %S
Code:
Const DATE_PART_ABBREVIATE = True
Dim strValue

' %y for year, two digit
strValue = Right(DatePart( "yyyy", Now), 2)

' %Y for year, four digit
strValue = DatePart( "yyyy", Now))

' %b for month name, example Jan
strValue
...
LQ 5k Club
Posted in Uncategorized
Views 1205 Comments 0 catkin is offline
Old

Why and how to use Mutex locks - Pthreads

Posted 02-27-2012 at 12:06 PM by TheIndependentAquarius
Updated 05-21-2012 at 02:51 AM by TheIndependentAquarius

Problem:
Underlying operating system may schedule the threads on the basis of some algorithm which works on time limit (threads may be allowed to run only for certain durations of time, thus preventing the other threads from starvation), priority (higher priority threads may interrupt the lower priority threads during their execution), or some other factor.

These factors may cause a thread to sleep before it completes its task fully. Another thread may get scheduled meanwhile...
Senior Member
Posted in PThreads
Views 13422 Comments 3 TheIndependentAquarius is offline

  



All times are GMT -5. The time now is 11:22 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration