Search:

Type: Posts; User: lehe

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    6,624

    Parallelize for-loop by MPI?

    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 ...
  2. Thanks Codeplug! 1. Someone told me the...

    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...
  3. specify the start and end of the parallel part using MPI

    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...
  4. Replies
    1
    Views
    1,564

    a sed and regex question

    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:
  5. Replies
    1
    Views
    5,022

    Does "conditional watchpoint" exist in gdb?

    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...
  6. Replies
    13
    Views
    7,971

    A final question: are there some cases "info...

    A final question:
    are there some cases "info symbol <address>" will help to debug an error?
  7. Replies
    13
    Views
    7,971

    Yes I see. As to looking around that variable,...

    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...
  8. Replies
    13
    Views
    7,971

    Thanks again! for 3, I meant the memory...

    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...
  9. Replies
    13
    Views
    7,971

    Thank you, tabstop! 1. does the symbol generated...

    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...
  10. Replies
    13
    Views
    7,971

    Thanks Mario F.! How to get stack-frame offset...

    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?...
  11. Replies
    13
    Views
    7,971

    Thanks! I was reading the gdb document and didn't...

    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...
  12. Replies
    13
    Views
    7,971

    info symbol in gdb

    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(){
  13. Replies
    5
    Views
    7,225

    Thank you! Is it possible to point me to some...

    Thank you!
    Is it possible to point me to some references of which option is done in which stage?
    Thanks!
  14. Replies
    5
    Views
    7,225

    Thanks! I am learning to use someone's Makefile...

    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)

    ?
  15. Replies
    5
    Views
    7,225

    optimization and debugging options in Makefile

    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...
  16. ignore OpenMP in C++ program on machine without it

    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. .
    ...
  17. Install library under HOME shared via Network File System

    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...
  18. Replies
    3
    Views
    2,100

    Thanks. Actually I wanted to ask after ssh to...

    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...
  19. Replies
    3
    Views
    2,100

    type of a workstation for parallel computing

    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...
  20. I think $(CXX) $(CXXFLAGS) -o $@ $^...

    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?
  21. organize project and specify directory for object files in Makefile

    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...
  22. Connect to a wireless network via Linux command line

    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
  23. Replies
    8
    Views
    42,699

    Thanks!

    Thanks!
  24. Replies
    8
    Views
    42,699

    Thank you. But my question was not what you said....

    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...
  25. Replies
    8
    Views
    42,699

    Like suspend the jobs by C-z, get the info of the...

    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...
Results 1 to 25 of 160
Page 1 of 7 1 2 3 4