Comments (4)
Hi Andreas,
quickrand is a mex file that is provided as c code, and pre-compiled for 64 bit windows and linux. If you are on some other OS you'll have to re-compile it.
If that doesn't resolve your question, could you please post your matlab path? I assume you ran the install script?
Best,
David
from sbmvivo.
Hi David,
Thanks, yes that was definitively the problem as I was trying to run it on OS X.
Switching to Windows however, I have tried to run the CUDA version in MATLAB, but I have issues compiling the CUDA .cpp functions with mex.
Is there any other requirement than running standard mex function to compile the necessary functions? I see in the readme that this has only been tested in Linux, so I might be asking a lot. I get the following error on Windows using MATLAB R2018a with MinGW64 as C compiler:
mex cuda5s_mex_init.cpp
Building with 'MinGW64 Compiler (C++)'.
Error using mex
C:\Users\V1\AppData\Local\Temp\mex_11630276685775185_5540\cuda5s_mex_init.obj:cuda5s_mex_init.cpp:(.text+0x182): undefined reference to
`allocate_gpupfdata(gpu5s_problem*, int, int, int, int, int, int, int, unsigned long long)'
collect2.exe: error: ld returned 1 exit status
Any tips?
Cheers,
Andreas
from sbmvivo.
You can't compile the cpp files with mex directly, instead you should use the makefile in the mex/sbm_cuda directory, which will call nvcc and mex as needed with all necessary flags.
To get compilation working on windows or mac, you'll have to remove sys/time.h and all calls to clock_gettime() from cuda5s2b.cu, as these timing functions are linux only. However they're not used by default so you won't miss out on any functionality. If you do manage to get the cuda code to compile on windows, please issue a pull request or otherwise let me know!
As a short term alternative, you might also consider renting a GPU instance from amazon and running the code there.
from sbmvivo.
Okey, I was mistaken in thinking makefiles was a Linux specific thing. I'll give it a try.
Thanks!
from sbmvivo.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sbmvivo.