Search:

Type: Posts; User: johngoodman

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    4,389

    I was making an attempt to read the first line,...

    I was making an attempt to read the first line, then the next 5 lines of the file...each line is one word, the file path...and store each file path all into the same buffer, i changed it to strlen()...
  2. Replies
    8
    Views
    4,389

    Ok, that's working now, thank you! I've been...

    Ok, that's working now, thank you! I've been doing a little looking around and I think there is an easier route to do simple file IO. What if I went a different route, say fscanf.... dealing with...
  3. Replies
    8
    Views
    4,389

    Here is my second version going off what you said...

    Here is my second version going off what you said about my previous code:



    int p;
    int id;

    MPI_Init(&argc, &argv);
    MPI_Comm_size(MPI_COMM_WORLD, &p);
    ...
  4. Replies
    8
    Views
    4,389

    int p; int id; MPI_Init(&argc,...

    int p;
    int id;

    MPI_Init(&argc, &argv);
    MPI_Comm_size(MPI_COMM_WORLD, &p);
    MPI_Comm_rank(MPI_COMM_WORLD, &id);
    if(id==0) { // Process 0
    FILE *infile;
    ...
  5. Replies
    8
    Views
    4,389

    MPI Scatter

    I'm having difficulties passing the right amount of characters to other processes using scatter. I'm trying to open a file which contains 6 file names and splitting it up and sending a file name to...
  6. Thread: Basic MPI

    by johngoodman
    Replies
    7
    Views
    2,011

    Never mind, solved it

    Never mind, solved it
  7. Thread: Basic MPI

    by johngoodman
    Replies
    7
    Views
    2,011

    I solved the problem, the only thing not working...

    I solved the problem, the only thing not working now is my ranges, all the recipients calculate 21 prime numbers resulting in 63...I want to split the range up into three parts. I'm having trouble...
  8. Thread: Basic MPI

    by johngoodman
    Replies
    7
    Views
    2,011

    When I get a moment I will do that, thank you for...

    When I get a moment I will do that, thank you for the recommendation
  9. Thread: Basic MPI

    by johngoodman
    Replies
    7
    Views
    2,011

    That makes sense Salem, thank you, but now it's...

    That makes sense Salem, thank you, but now it's going through and giving me zero as the result. Here is my revised code:



    int main(int argc, char **argv){
    int myID;
    int numProcs;

    ...
  10. Thread: Basic MPI

    by johngoodman
    Replies
    7
    Views
    2,011

    Basic MPI

    I wrote a program which sends a starting and ending range to other processes and the processes calculate the prime numbers in that range and return the count of prime numbers to the head process,...
  11. Thread: Sockets

    by johngoodman
    Replies
    1
    Views
    864

    Sockets

    I'm trying to complete a basic socket program. I have a class which is the server and I have 3 clients/nodes. The master is supposed to split a range of values into three equal parts and pass...
  12. Replies
    13
    Views
    2,434

    I removed the parentheses making the vectors...

    I removed the parentheses making the vectors actually instance variables rather than functions, but that line is still giving me a problem:
    In file included from simulation.cc:1:
    cache.cc: In...
  13. Replies
    13
    Views
    2,434

    What you are seeing is me in the early stages...

    What you are seeing is me in the early stages still fiddling with concepts giving a first shot at things and I throw it on here to kind of get other peoples' feedback, I only do this when I'm not...
  14. Replies
    13
    Views
    2,434

    I really appreciate all the help, but my four...

    I really appreciate all the help, but my four files of code isn't effort enough? Believe me I'm putting in the effort, I'm really new to C++
  15. Replies
    13
    Views
    2,434

    The problem I'm currently trying to solve is the...

    The problem I'm currently trying to solve is the one on this line in cache's read function: int hitFlag = v.at(0)->set.read(offset, tag);
    and my loop initializing all the sets in the constructor: ...
  16. Replies
    13
    Views
    2,434

    Error - Does not have a class type

    I'm getting an error when I attempt compiling my program. I left out the block.cc/h files because they don't pertain to the problem at hand at the moment. I'm building a cache simulator but the...
  17. Replies
    3
    Views
    986

    Is there a way of passing all the variables I...

    Is there a way of passing all the variables I want from the server to the client in one read? Otherwise, yes, I see what you have pointed out but I don't really know how to properly pass the values...
  18. Replies
    3
    Views
    986

    Basic socket help needed

    I'm trying to complete a basic socket program. I have a class which is the server and I have a client which is in a different class. The master is supposed to pass a given range of values to the...
  19. Replies
    3
    Views
    6,941

    Thank you for the response! So then what would it...

    Thank you for the response! So then what would it look like to split up a 64 bit address...I'd like my cache to be able to handle up to 64 bits using unsigned longs
  20. Replies
    3
    Views
    6,941

    Cache simulator - bit shifting

    I'm attempting to make a cache simulator in C++. But I need to access individual bits in an integer to figure out where in my "cache" the writing actually gets done. I'm pretty new to bit...
  21. Replies
    6
    Views
    1,506

    I'm actually passing ints to a function which...

    I'm actually passing ints to a function which takes in unsigned longs so I can handle up to 64 bits
  22. Replies
    6
    Views
    1,506

    For now I'm just attempting a directly mapped...

    For now I'm just attempting a directly mapped cache
  23. Replies
    6
    Views
    1,506

    I need to break the bits up into 3 sections:...

    I need to break the bits up into 3 sections: tag, set index, and block index. I think I can figure out the set and block index sizes based on the values passed in. The tag bits are just the...
  24. Replies
    6
    Views
    1,506

    Bit shifting - cache simulator

    I'm attempting to make a cache simulator in C++. But I need to access individual bits in an integer to figure out where in my "cache" the writing actually gets done. I'm pretty new to bit shifting....
  25. Thread: Threading

    by johngoodman
    Replies
    0
    Views
    647

    Threading

    I'm having difficulties trying to keep track of each individual thread's run time. The program works, in finding the primes but all I'm trying to do now is get each thread's run time and how many...
Results 1 to 25 of 102
Page 1 of 5 1 2 3 4