Skip to content

Commit

Permalink
Merge pull request #1 from haampie/fix-typo-in-example
Browse files Browse the repository at this point in the history
Fix spelling error
  • Loading branch information
pevisscher committed Jan 12, 2016
2 parents 93140ef + ee694b3 commit 3cba644
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ For detailed usage, please visit [BSPLib](https://www.bsplib.eu).
```cpp
void main( int32_t, const char ** )
{
BSPLib::Excute( []
BSPLib::Execute( []
{
std::cout << "Hello BSP Worldwide from process " << BSPLib::ProcId()
<< " of " << BSPLib::NProcs() << std::endl;
Expand Down
4 changes: 2 additions & 2 deletions docs/halting/abort.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ aborted. If not, it will notify the waiting threads about the abort. If even thi
```cpp
void main( int32_t, const char ** )
{
bool success = BSPLib::Excute( []
bool success = BSPLib::Execute( []
{
if ( BSPLib::Classic::ProcId() == 0 )
{
Expand All @@ -74,7 +74,7 @@ void main( int32_t, const char ** )
```cpp
void main( int32_t, const char ** )
{
bool success = BSPLib::Excute( []
bool success = BSPLib::Execute( []
{
if ( bsp_pid() == 0 )
{
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ For detailed usage, please visit [BSPLib](https://www.bsplib.eu).
```cpp
void main( int32_t, const char ** )
{
BSPLib::Excute( []
BSPLib::Execute( []
{
std::cout << "Hello BSP Worldwide from process " << BSPLib::Classic::ProcId()
<< " of " << BSPLib::NProcs() << std::endl;
Expand Down
6 changes: 3 additions & 3 deletions docs/logic/execute.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ This is the normal usage of the function.
```cpp
void main( int32_t, const char ** )
{
BSPLib::Excute( []
BSPLib::Execute( []
{
std::cout << "Hello BSP Worldwide from process " << BSPLib::Classic::ProcId()
<< " of " << BSPLib::NProcs() << std::endl;
Expand All @@ -86,7 +86,7 @@ If the computation could call abort, one can check for it on the return type.
```cpp
void main( int32_t, const char ** )
{
bool success = BSPLib::Excute( []
bool success = BSPLib::Execute( []
{
std::cout << "Hello BSP Worldwide from process " << BSPLib::Classic::ProcId()
<< " of " << BSPLib::NProcs() << std::endl;
Expand All @@ -106,7 +106,7 @@ void main( int32_t, const char ** )
```cpp
void main( int32_t argc, const char **argv )
{
BSPLib::Excute( []
BSPLib::Execute( []
{
std::cout << "Hello BSP Worldwide from process " << BSPLib::Classic::ProcId()
<< " of " << BSPLib::NProcs() << std::endl;
Expand Down
6 changes: 3 additions & 3 deletions docs/sync/sync.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void main( int32_t, const char ** )
const uint32_t nProcs = BSPLib::NProcs();
// Waits for all threads to print the first line,
// before printing the second line.
BSPLib::Excute( []
BSPLib::Execute( []
{
std::cout << "Thread " << BSPLib::ProcId()
<< " waiting on barrier 1" << std::endl;
Expand All @@ -62,7 +62,7 @@ void main( int32_t, const char ** )
const uint32_t nProcs = BSPLib::NProcs();
// Waits for all threads to print the first line,
// before printing the second line.
BSPLib::Excute( []
BSPLib::Execute( []
{
std::cout << "Thread " << BSPLib::Classic::ProcId()
<< " waiting on barrier 1" << std::endl;
Expand All @@ -86,7 +86,7 @@ void main( int32_t, const char ** )
const uint32_t nProcs = bsp_nprocs();
// Waits for all threads to print the first line,
// before printing the second line.
BSPLib::Excute( []
BSPLib::Execute( []
{
std::cout << "Thread " << bsp_pid()
<< " waiting on barrier 1" << std::endl;
Expand Down
12 changes: 6 additions & 6 deletions docs/util/nprocs.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ void main( int32_t, const char ** )
{
// The total amount of physical processors available
const uint32_t nProcs = BSPLib::NProcs();
BSPLib::Excute( []
BSPLib::Execute( []
{
std::cout << "The amount of processors we started with equals " << BSPLib::NProcs() << std::endl;
}, nProcs );

// prints: "The amount of processors we started with equals 3", 3 times
BSPLib::Excute( []
BSPLib::Execute( []
{
std::cout << "The amount of processors we started with equals " << BSPLib::NProcs() << std::endl;
}, 3 );
Expand All @@ -56,13 +56,13 @@ void main( int32_t, const char ** )
{
// The total amount of physical processors available
const uint32_t nProcs = BSPLib::Classic::NProcs();
BSPLib::Excute( []
BSPLib::Execute( []
{
std::cout << "The amount of processors we started with equals " << BSPLib::Classic::NProcs() << std::endl;
}, nProcs );
// prints: "The amount of processors we started with equals 3", 3 times
BSPLib::Excute( []
BSPLib::Execute( []
{
std::cout << "The amount of processors we started with equals " << BSPLib::Classic::NProcs() << std::endl;
}, 3 );
Expand All @@ -76,13 +76,13 @@ void main( int32_t, const char ** )
{
// The total amount of physical processors available
const uint32_t nProcs = bsp_nprocs();
BSPLib::Excute( []
BSPLib::Execute( []
{
std::cout << "The amount of processors we started with equals " << bsp_nprocs() << std::endl;
}, nProcs );

// prints: "The amount of processors we started with equals 3", 3 times
BSPLib::Excute( []
BSPLib::Execute( []
{
std::cout << "The amount of processors we started with equals " << bsp_nprocs() << std::endl;
}, 3 );
Expand Down
12 changes: 6 additions & 6 deletions docs/util/procid.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ void main( int32_t, const char ** )
const uint32_t nProcs = BSPLib::NProcs();

// prints: "The current processor identifier is `x`", with x between 0 and `nProcs` - 1.
BSPLib::Excute( []
BSPLib::Execute( []
{
std::cout << "The current processor identifier is " << BSPLib::ProcId() << std::endl;
}, nProcs );

// prints: "The current processor identifier is 0"
BSPLib::Excute( []
BSPLib::Execute( []
{
std::cout << "The current processor identifier is " << BSPLib::ProcId() << std::endl;
}, 1 );
Expand All @@ -57,13 +57,13 @@ void main( int32_t, const char ** )
const uint32_t nProcs = BSPLib::NProcs();
// prints: "The current processor identifier is `x`", with x between 0 and `nProcs` - 1.
BSPLib::Excute( []
BSPLib::Execute( []
{
std::cout << "The current processor identifier is " << BSPLib::Classic::ProcId() << std::endl;
}, nProcs );
// prints: "The current processor identifier is 0"
BSPLib::Excute( []
BSPLib::Execute( []
{
std::cout << "The current processor identifier is " << BSPLib::Classic::ProcId() << std::endl;
}, 1 );
Expand All @@ -79,13 +79,13 @@ void main( int32_t, const char ** )
const uint32_t nProcs = BSPLib::NProcs();

// prints: "The current processor identifier is `x`", with x between 0 and `nProcs` - 1.
BSPLib::Excute( []
BSPLib::Execute( []
{
std::cout << "The current processor identifier is " << bsp_pid() << std::endl;
}, nProcs );

// prints: "The current processor identifier is 0"
BSPLib::Excute( []
BSPLib::Execute( []
{
std::cout << "The current processor identifier is " << bsp_pid() << std::endl;
}, 1 );
Expand Down
6 changes: 3 additions & 3 deletions docs/util/time.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void main( int32_t, const char ** )

// prints: "The processes waited for `x` seconds", where `x` is greater
// than 5 for each thread.
BSPLib::Excute( []
BSPLib::Execute( []
{
std::this_thread::sleep_for( std::chrono::milliseconds( 5000 ) );
std::cout << "The processes waited for " << BSPLib::Time()
Expand All @@ -48,7 +48,7 @@ void main( int32_t, const char ** )
// prints: "The processes waited for `x` seconds", where `x` is greater
// than 5 for each thread.
BSPLib::Excute( []
BSPLib::Execute( []
{
std::this_thread::sleep_for( std::chrono::milliseconds( 5000 ) );
std::cout << "The processes waited for " << BSPLib::Classic::Time()
Expand All @@ -67,7 +67,7 @@ void main( int32_t, const char ** )

// prints: "The processes waited for `x` seconds", where `x` is greater
// than 5 for each thread.
BSPLib::Excute( []
BSPLib::Execute( []
{
std::this_thread::sleep_for( std::chrono::milliseconds( 5000 ) );
std::cout << "The processes waited for " << bsp_sleep()
Expand Down

0 comments on commit 3cba644

Please sign in to comment.