Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while compiling mex #60

Closed
alexattia opened this issue Dec 15, 2017 · 1 comment
Closed

Error while compiling mex #60

alexattia opened this issue Dec 15, 2017 · 1 comment

Comments

@alexattia
Copy link

Hello,
I am trying to use your code on Ubuntu 16.0.4, Cuda 9.0 and CuDnn 7.0 but I am facing an error while compiling your MEX function with MATLAB R2017b (when I am running compile_mex;) :

/home/alexattia/Work/RecVis/tiny/utils/compute_dense_overlap.cc:76:85: error: cannot convert 'const int*' to 'const size_t* {aka const long unsigned int*}'
for argument '2' to 'mxArray* mxCreateNumericArray(size_t, const size_t*, mxClassID, mxComplexity)'
   mxArray *mx_tmp_overlap = mxCreateNumericArray(3, tmp_dims, mxDOUBLE_CLASS, mxREAL);
                                                                                     ^
Error in compile_mex (line 8)
mex compute_dense_overlap.cc CXXOPTIMFLAGS='-O3 -DNDEBUG'

Do you have any clue how to solve this ?
Thank you very much in advance.

@alexattia
Copy link
Author

Sorry, I didn't see this solution from #24. It solved my issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant