Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: porting _beginthreadex from VS2005 to VS2017 Pin
leon de boer18-Apr-18 15:27
leon de boer18-Apr-18 15:27 
GeneralRe: porting _beginthreadex from VS2005 to VS2017 Pin
jimNLX9-May-18 9:18
jimNLX9-May-18 9:18 
GeneralRe: porting _beginthreadex from VS2005 to VS2017 Pin
leon de boer9-May-18 16:11
leon de boer9-May-18 16:11 
GeneralRe: porting _beginthreadex from VS2005 to VS2017 Pin
jimNLX11-May-18 6:23
jimNLX11-May-18 6:23 
QuestionOpenCL bit-matrix multiplication (implementing tiling in local memory) Pin
User 1370349219-Mar-18 19:19
User 1370349219-Mar-18 19:19 
AnswerRe: OpenCL bit-matrix multiplication (implementing tiling in local memory) Pin
leon de boer19-Mar-18 23:47
leon de boer19-Mar-18 23:47 
GeneralRe: OpenCL bit-matrix multiplication (implementing tiling in local memory) Pin
User 1370349220-Mar-18 1:02
User 1370349220-Mar-18 1:02 
GeneralRe: OpenCL bit-matrix multiplication (implementing tiling in local memory) Pin
leon de boer20-Mar-18 3:12
leon de boer20-Mar-18 3:12 
It isn't valid C++ code ... Are you seriously telling me you can compile these 3 lines of code on Visual Studio?
C++
unsigned long long A = new unsigned long long[n*n/64]; // stores bits in 64-bit integers
unsigned long long B = new unsigned long long[n*n/64]; // for example, one row consists of 256 bits and uses 4x64-bit integers to store them
int C  = new int[n*n];

I don't care what n is I actually don't know a C++ compiler that will take that.

Visual Studio 2017 will report it correctly that it's missing an all important "*" making it a pointer
Error (active)	E0144	a value of type "unsigned long long *" cannot be used to initialize an entity of type "unsigned long long"	
Error (active)	E0144	a value of type "unsigned long long *" cannot be used to initialize an entity of type "unsigned long long"	
Error (active)	E0144	a value of type "int *" cannot be used to initialize an entity of type "int"

Hence I am still favouring you have typed it wrong because you would be complaining of those errors and I can't believe a lecturer would write that.
Your link isn't correct so I can't look at what I suspect is the real code.

Are you allowed to change BitProduct function to
__kernel void BitProduct(const int N, const __global unsigned long long* A, const __global unsigned long long* B, __global int* C)

That might give you a fighting chance other than that I am pretty sure you are wasting your time and go talk to lecturer.
In vino veritas


modified 20-Mar-18 14:10pm.

GeneralRe: OpenCL bit-matrix multiplication (implementing tiling in local memory) Pin
User 1370349220-Mar-18 10:09
User 1370349220-Mar-18 10:09 
GeneralRe: OpenCL bit-matrix multiplication (implementing tiling in local memory) Pin
leon de boer20-Mar-18 15:27
leon de boer20-Mar-18 15:27 
GeneralRe: OpenCL bit-matrix multiplication (implementing tiling in local memory) Pin
User 1370349221-Mar-18 3:50
User 1370349221-Mar-18 3:50 
GeneralRe: OpenCL bit-matrix multiplication (implementing tiling in local memory) Pin
leon de boer21-Mar-18 4:25
leon de boer21-Mar-18 4:25 
GeneralRe: OpenCL bit-matrix multiplication (implementing tiling in local memory) Pin
User 1370349221-Mar-18 7:00
User 1370349221-Mar-18 7:00 
GeneralRe: OpenCL bit-matrix multiplication (implementing tiling in local memory) Pin
leon de boer21-Mar-18 16:12
leon de boer21-Mar-18 16:12 
GeneralRe: OpenCL bit-matrix multiplication (implementing tiling in local memory) Pin
User 137034921-Apr-18 18:05
User 137034921-Apr-18 18:05 
GeneralRe: OpenCL bit-matrix multiplication (implementing tiling in local memory) Pin
leon de boer2-Apr-18 18:56
leon de boer2-Apr-18 18:56 
GeneralRe: OpenCL bit-matrix multiplication (implementing tiling in local memory) Pin
User 1370349220-Mar-18 9:07
User 1370349220-Mar-18 9:07 
GeneralRe: OpenCL bit-matrix multiplication (implementing tiling in local memory) Pin
Victor Nijegorodov20-Mar-18 9:18
Victor Nijegorodov20-Mar-18 9:18 
QuestionHow to read MS EXCEL workbook in Linux using C++ Pin
Member 179075719-Mar-18 5:55
Member 179075719-Mar-18 5:55 
AnswerRe: How to read MS EXCEL workbook in Linux using C++ Pin
Randor 19-Mar-18 7:11
professional Randor 19-Mar-18 7:11 
AnswerRe: How to read MS EXCEL workbook in Linux using C++ Pin
Victor Nijegorodov19-Mar-18 7:19
Victor Nijegorodov19-Mar-18 7:19 
QuestionCompiling MPI with VS2017 Linux Pin
Kenneth Haugland18-Mar-18 11:10
mvaKenneth Haugland18-Mar-18 11:10 
AnswerRe: Compiling MPI with VS2017 Linux Pin
leon de boer18-Mar-18 14:22
leon de boer18-Mar-18 14:22 
GeneralRe: Compiling MPI with VS2017 Linux Pin
Kenneth Haugland18-Mar-18 23:21
mvaKenneth Haugland18-Mar-18 23:21 
GeneralRe: Compiling MPI with VS2017 Linux Pin
leon de boer19-Mar-18 5:02
leon de boer19-Mar-18 5:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.