I am wondering how I can speed up the time-consuming computation in the loop of my code below using MPI?
int main(int argc, char ** argv)
{
// some operations ...
Type: Posts; User: lehe
I am wondering how I can speed up the time-consuming computation in the loop of my code below using MPI?
int main(int argc, char ** argv)
{
// some operations ...
Thanks Codeplug!
1. Someone told me the beginning and end of the part to be paralleled is MPI_Init() and MPI_Finalize(), and other parts before and after it are just serialized. So it is not...
I like to specify the start and end of the parallel part using MPI. In the following toy code, I want to limit the parallel part within function f():
#include "mpi.h"
#include...
Hi,
I am generating some dependency files from gcc -MM.
Makefile.depend: *.h *.cc Makefile
$(CXX) -MM $(CXXFLAGS) *.cc > Makefile.depend
Each rule in the resulted file is like:
Hi,
Is there anyway to set "conditional watchpoint", like "watch var1 if var1==0"? In my case, the condition does't work. gdb stops whenever var1's value is changed, instead of untill "var1==0" is...
A final question:
are there some cases "info symbol <address>" will help to debug an error?
Yes I see.
As to looking around that variable, I meant in some cases when I write out of the boundary of an array, runtime error occurs not at that place but several lines later where a nearby...
Thanks again!
for 3, I meant the memory address for a variable not for the code line.
But now I think if I could know the line of code that directly causes the problem, the variable whose...
Thank you, tabstop!
1. does the symbol generated with gdb -g only for global or static variables, not for local nonstatic variables?
2. Given an address, is it possible to know the local variable...
Thanks Mario F.!
How to get stack-frame offset address from a memory address?
Assuming my program has segment fault and stops in gdb, isn't the address shown by backtrace the memory address?...
Thanks! I was reading the gdb document and didn't see the global or static requirement the online help offers.
So for non-global or non-static variables, such as tt in my case:
1. is it...
Hi,
I am learning to use "info symbol <address>" in gdb. here is my code:
#include <iostream>
#include "functions.h"
using namespace std;
int main(){
Thank you!
Is it possible to point me to some references of which option is done in which stage?
Thanks!
Thanks! I am learning to use someone's Makefile
So it is not use to include CXXFLAG in linking as in his Makefile
test: test.o rgb_image.o
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
?
Hi,
I wonder where to put the optimization and debugging options in Makefile: linking stage or compiling stage? I am reading a Makefile:
ifeq ($(STATIC),yes)
LDFLAGS=-static -lm -ljpeg -lpng...
Hi,
I want to run a C++ program using OpenMP on several machines. Some of them have OpenMP installed and others don't because their GCC is below version 4.2.x which doesn't support OpenMP. .
...
Hi,
My Home directory is shared among several linux computers via Network File System.
I would like to install some C C++ library from source under my Home directory, and wish they can be used...
Thanks.
Actually I wanted to ask after ssh to the workstation, what bash command or application can give info about the type of the workstation: shared memory, distributed memory, or shared...
Hi,
According to what wiki says about parallel computing (Parallel computing - Wikipedia, the free encyclopedia), parallel models are implemented in several ways based on the underlying memory...
I think
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
is to generate the object files from C++ files. But how to specify that I want the object files to be generated under /home/myproject/bin?
Hi,
Here are my two questions:
1. I am now learning to manage my code with CVS, and I just want to make a repository for my C++ files, Makefile and bash and python scripts only, not the object...
Hi,
Here is what I did
ifconfig wlan0 up
iwlist wlan0 scan
iwconfig wlan0 essid NETWORK_ID key WIRELESS_KEY
1. After iwconfig, I got this error
Thanks!
Thank you. But my question was not what you said. An example will explain it better, I think.
Say you have a background job
display "rorshache.jpg" &
You wrote it into a bash script called...
Like suspend the jobs by C-z, get the info of the jobs by "jobs", ...
If you put your code for background jobs into a bash script, and run it in a shell, can you still use those commands on the...