Changeset 2898


Ignore:
Timestamp:
Sep 18, 2013 9:07:32 AM (7 years ago)
Author:
bradbell
Message:

Bring up to date so run with current version.

alloc_global.sh: fix check so does not fail when cannot get enough threads.

Location:
trunk/bug
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bug/alloc_global.sh

    r2745 r2898  
    6969bool alloc_global(void)
    7070{       bool ok = true;
     71        using std::cout;
     72        using std::endl;
    7173       
    7274        size_t num_threads = NUMBER_THREADS;
    7375        if( omp_get_max_threads() < num_threads )
    74         {       std::cout << "can't set num_threads = " << num_threads << std::endl;
     76        {       cout << "can't set num_threads = " << num_threads << endl;
    7577                ok = false;
     78                return ok;
    7679        }
    7780
     
    105108}
    106109EOF
    107 echo "g++ -g $name.cpp -I../.. -fopenmp -o $name"
    108 g++ -g $name.cpp -I../.. -fopenmp -o $name
     110echo "g++ -g $name.cpp -I../.. -fopenmp -std=c++11 -o $name"
     111g++ -g $name.cpp -I../.. -fopenmp -std=c++11 -o $name
    109112#
    110113echo "./$name"
  • trunk/bug/reachable.sh

    r2745 r2898  
    4747EOF
    4848#
    49 echo "g++ -g -I../..  reachable.cpp -o reachable"
    50 g++ -g -I../.. reachable.cpp -o reachable
     49echo "g++ -g -I../..  -std=c++11 reachable.cpp -o reachable"
     50g++ -g -I../.. -std=c++11 reachable.cpp -o reachable
    5151#
    5252echo "valgrind --leak-check=full --show-reachable=yes ./reachable"
Note: See TracChangeset for help on using the changeset viewer.