Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
At least you now agree you have typo errors which I could only guess at, so we made some progress.
Now can you to go carefully thru the code you typed because there are more errors which I have guessed at Smile | :)

Your code you have posted doesn't appear in the code you have linked so it's really confusing to me what it's relevance?
The code you linked is throwing masses of warnings a couple of them will be fatal if they get called, is this your code or the lecturers?

Lets give you a sample of one of the probably fatal warnings
printf("Program (%d):\n%s\n\n",err,program[p]);
The second parameter is listed as a string %s, what is passed in is a cl_program which is a struct AKA nothing like a string
This is one of the problems with vardiac argument calls they are dangerous, the compiler can't be certain it's fatal but like me it's guessing it is may be fatal or at the least very bad and warning about it. So lets deal with how easy this could be fatal, well if the struct contains no zero's bytes printf is treating the struct as a string so it will keep reading past the struct itself and you are going to get a good old memory access fatal error.

So can we start again, either refer directly to the code you linked or type proper valid code for your question.

I don't mind helping but you have to give me proper valid code to look at.
In vino veritas


modified 20-Mar-18 22:01pm.

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 
GeneralRe: Compiling MPI with VS2017 Linux Pin
Kenneth Haugland19-Mar-18 6:17
mvaKenneth Haugland19-Mar-18 6:17 
GeneralRe: Compiling MPI with VS2017 Linux Pin
Randor 19-Mar-18 7:07
professional Randor 19-Mar-18 7:07 

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.