Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
'ConsoleApplication1.exe' (Win32): Loaded 'C:\DevSoft\TBB-Tutorial\ConsoleApplication1\x64\Debug\ConsoleApplication1.exe'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. 
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. 
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. 
'ConsoleApplication1.exe' (Win32): Loaded 'C:\DevSoft\TBB-Tutorial\ConsoleApplication1\x64\Debug\tbb_debug.dll'. 
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140d.dll'. 
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140_1d.dll'. 
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'. 
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140d.dll'. 
The thread 0x3380 has exited with code 0 (0x0).
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. 
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. 
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. 
The thread 0x5b4 has exited with code 0 (0x0).
The thread 0x342c has exited with code 0 (0x0).
The thread 0xed0 has exited with code 0 (0x0).
The thread 0x29fc has exited with code 0 (0x0).
The thread 0x21e8 has exited with code 0 (0x0).
The thread 0x2e2c has exited with code 0 (0x0).
The thread 0x353c has exited with code 0 (0x0).
The thread 0x2198 has exited with code 0 (0x0).
The thread 0x2044 has exited with code 0 (0x0).
The program '[6016] ConsoleApplication1.exe' has exited with code 0 (0x0).


What I have tried:

#include <tbb parallel_for.h="">#include <tbb blocked_range.h="">using namespace tbb;

const int size = 1000;

float a[size][size];
float b[size][size];
float c[size][size];


class Multiply
{
public:
void operator()(blocked_range<int> r) const {
for (int i = r.begin(); i != r.end(); ++i) {
for (int j = 0; j < size; ++j) {
for (int k = 0; k < size; ++k) {
c[i][j] += a[i][k] * b[k][j];
}
}
}
}
};


int main()
{
// Initialize buffers.
for (int i = 0; i < size; ++i) {
for (int j = 0; j < size; ++j) {
a[i][j] = (float)i + j;
b[i][j] = (float)i - j;
c[i][j] = 0.0f;
}
}

// Compute matrix multiplication.
// C <- C + A x B
parallel_for(blocked_range<int>(0, size), Multiply());

return 0;
}
Posted
Updated 12-Nov-19 1:39am
Comments
Richard Deeming 12-Nov-19 7:41am    
What error? All you've shown is the normal "program finished successfully" message.
Afzaal Ahmad Zeeshan 12-Nov-19 9:55am    
This seems to be a problem in cases where you want to show that a program crashes. Happens with me several times when I am authoring a course or book or article, I want the program to crash so badly, but it is like, "Not today!". :laugh:

1 solution

There is NO error in the dump you posted.

Quote:
The program '[6016] ConsoleApplication1.exe' has exited with code 0 (0x0).
means: "program terminated succesfully".
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900