Search:

Type: Posts; User: überfuzz

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,030

    omp locking indices in array

    Whats the fastest lock to use when a few indices in an array is to be locked? I've only used pthread before, so be patient. :-)
    Example:

    some global array = {0,1,2,3,4,5,6,7,8,9}
    ...
    //omp...
  2. Replies
    6
    Views
    1,681

    OK! I'll wont look into it further, based on the...

    OK! I'll wont look into it further, based on the assumption that you know what you're talking about. :-)

    THANKS!
  3. Replies
    6
    Views
    1,681

    Elysia - That's exactly what I planed to do....

    Elysia - That's exactly what I planed to do. There is no 'automatic' way of knowing the intervals assigned in a parallel for loop in openmp, right?
  4. Replies
    6
    Views
    1,681

    I found this: omp_get_num_threads() - should do...

    I found this: omp_get_num_threads() - should do the trick!
  5. Replies
    6
    Views
    1,681

    openMP - intervals assigned to threads

    Is there a way of knowing which indices a thread is assigned in a parallel openMP scope?
  6. Replies
    3
    Views
    954

    Maybe i was unclear... Each thread is deleting...

    Maybe i was unclear... Each thread is deleting entries in the assigned array interval. Well lets say Im interested in what to do after the code you posted.
    I think ill go with memcpy. Ill monitor...
  7. Replies
    3
    Views
    954

    handling array or list in parallel

    I have a bunch of numbers in an array, lets say 1,2,3,4,5,6,etc... and assign these to different threads.
    processor 0: arraypart = 1,2
    processor 1: arraypart = 3,4
    etc...
    Each processor is going...
  8. Replies
    2
    Views
    5,087

    Older versions of linux

    I found an old laptop that I'd like to... revive. I tried to run Mint 15 (32bit), with no luck. Does anyone know where I can find older versions of Linux, any distribution. I'm just going to use a...
  9. Replies
    12
    Views
    1,141

    Thanks to all, dazzling me with their...

    Thanks to all, dazzling me with their knowledge... and to all eagerly pointing out things frustrating you in the code. I was just parallelizing some stuff and came across some lines I didn't get.
  10. Replies
    12
    Views
    1,141

    Ok, I see that my first post was missing...

    Ok, I see that my first post was missing information.

    (*hist) = (int *) malloc( ncolors * sizeof(int) );
    // populate histo and nc ...
    (*permut_index) = (int *) malloc( n * sizeof(int) );...
  11. Replies
    12
    Views
    1,141

    OK, I got it. Thanks Meiyrusa!

    OK, I got it. Thanks Meiyrusa!
  12. Replies
    12
    Views
    1,141

    syntax question

    I using a library and in it there are some lines I don't understand. What does this syntax do?

    //array of ints
    //index is an integer
    (*array)[index]
  13. Replies
    13
    Views
    1,301

    Hi again! Ok, this is a version of my code...

    Hi again!

    Ok, this is a version of my code with all other junk deleted.

    #include <iostream>
    #include <string.h>
    #include <stdlib.h>

    using namespace std;
    #define ValueType int
  14. Replies
    13
    Views
    1,301

    It should be more like this:...

    It should be more like this:
    delete_vertex(&node); // This is done in the loop iterating through the linked list.


    delete_vertex(struct vertex ** node ){
    (*node)->prev->next =...
  15. Replies
    13
    Views
    1,301

    Thanks for replying. Unfortunately I'm not on my...

    Thanks for replying. Unfortunately I'm not on my own computer, waiting for a host to fix drinks, beers, snacks and ......... I'll write from memory...

    I tried to set it up like this:
    ...
  16. Replies
    13
    Views
    1,301

    Ok I got that sorted. Now it turns out I'm having...

    Ok I got that sorted. Now it turns out I'm having trouble deleting nodes in the list...
  17. Replies
    13
    Views
    1,301

    I started all over again. The thing is, I have a...

    I started all over again. The thing is, I have a code that works properly. It iterates through nodes, the nodes are stored in an array. In each iteration about 2/3s is handled and 'marked done'...
  18. Replies
    13
    Views
    1,301

    Thanks for showing such interest in my code, or...

    Thanks for showing such interest in my code, or whatever you like to call it. ;-) First of all I use C/C++ for the good support of parallelizing libraries. I never really bothered my about the prints...
  19. Replies
    13
    Views
    1,301

    Still the same result... Here's the updated code:...

    Still the same result... Here's the updated code:

    #include <iostream>
    #include <string.h>
    #include <stdlib.h>
    #include <stdio.h>

    using namespace std;
    #define ValueType int
  20. Replies
    5
    Views
    1,057

    Aha, I found this: Setting up Code::Blocks and...

    Aha, I found this: Setting up Code::Blocks and MINGW, A Free C and C++ Compiler, on Windows - Cprogramming.com. I guess it will solve the compiler part of my query.
  21. Replies
    5
    Views
    1,057

    New to windows - need a compiler and info

    I'm recently started using windows. I'm a seasoned Linux user, but this is new and exciting to me.

    Is there an (easy) way of getting a compiler for my windows 7? If so, does libraries such as...
  22. Replies
    13
    Views
    1,301

    Argh, and I missed that? Thanks for pointing it...

    Argh, and I missed that? Thanks for pointing it out!
  23. Replies
    5
    Views
    1,299

    It looks like a school example. I bet your...

    It looks like a school example. I bet your teacher would be thrilled if you'd ask. (I used to work as a teacher)
  24. Replies
    12
    Views
    1,432

    I remember how I felt when I realised that there...

    I remember how I felt when I realised that there are not one living person who has skills worth mentioning in all fields of mathematics...

    The issue with code languages, take C/C++ for instance,...
  25. Replies
    13
    Views
    1,301

    Linked lists - trying to revive...

    I'm trying to set up a simple implementation of a double linked list. I can't make it fly. Here's my code:

    #include <iostream>
    #include <string.h>
    #include <stdlib.h>
    #include <stdio.h>
    ...
Results 1 to 25 of 110
Page 1 of 5 1 2 3 4