-
Notifications
You must be signed in to change notification settings - Fork 200
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
Install on mac (el capitan) #56
Comments
You should read the thread in this issue. You can also try reading the summary below. http://mynotebookis.blogspot.com/2015/11/installing-deepcl-on-macbook-air-2013.html?m=1 On Fri, 11 Mar 2016 at 01:59 Alexandre notifications@github.com wrote:
|
Thank you Dexdev08, that looks really useful :-) Alexandre, just in case you want to convince yourself that DeepCL really does build and run on Mac OS X, note that there is a travis build at https://travis-ci.org/hughperkins/DeepCL/builds eg https://travis-ci.org/hughperkins/DeepCL/builds/115280480 This runs the travis file at https://github.com/hughperkins/DeepCL/blob/master/.travis.yml |
Hello Hugh, I’m sorry to bother you again, but I was able to install correctly your CNN library, but I have some questions, and I hope you can help me. - Is it any way to use it with XCode and c++? - I didn’t find any .cl code, so how can I manage task relation between CPU-GPU? For last, you did a great job for the deep learning community, thank you! |
I'm not sure I understand your question
|
I think what alexandre is asking if he can use deepcl in obj-c /c++... I But there is a c++ library so one should be able to use it for c++.
|
Hello Hugh, I’m trying to compile your example on XCode with C++ because I’ll develop my PhD project integrating CNN with other techniques. However I’m having troubles to do it. I followed your instructions to install and almost everything was ok, with the exception of inverting the lines $ pip install wheel and $ pip install numpy. At the end, the answer was:[----------] Global test environment tear-down [==========] 176 tests from 37 test cases ran. (191542 ms total) [ PASSED ] 171 tests. [ FAILED ] 5 tests, listed below: [ FAILED ] SLOW_testforward.compare_args [ FAILED ] SLOW_testforward.perf_kgsgo_64c7_args [ FAILED ] SLOW_testbackward.perf_kgsgo_32c5 [ FAILED ] SLOW_testNorbLoader.loadall [ FAILED ] DATA_testNorbLoader.load1000 5 FAILED TESTS YOU HAVE 2 DISABLED TESTS This way I taught, probably those errors are related to some specific library, as the Norb dataset. Next step was trying to use it from Xcode. I created a new C++ project, added OpenCL framework (I already tried the opencl programming before, so it’s running), and added the header and library paths. I set the C++ language dialect to GNU 11 and C++ 11 (tried with both), and libstdc++ (GNU C++ standard library). My code is very simple, as following:#include #include "DeepCL.h" #include “EasyCL.h" int main( int argc, const char * argv[]) { EasyCL *cl = EasyCL :: createForFirstGpuOtherwiseCpu (); //NeuralNet *net = new NeuralNet( cl ); return 0 ; } But got the error #include file not found. I have the intention of contribute with different methods to your project. Can you help me to say what I’m doing wrong? Thank you very much again,
— |
for the failed tests:
I'm using C++0x as my standard, on linux, (and Visual Studio 2010 as my standard on Windows). I use c++0x instead of c++11x for two reasons:
You might need to google a bit to find out the equivalent on your system. Or maybe it's simply not needed. You could try commenting it out, and see what errors you get in its place (if any). Then, eithre leave it commented, or replace with the equivalent (If I've accidentally skipped something in your questions, please restate, not intentional) |
Hello Hugh, I google about your recommendations, and here are my answers (and my new issue). About the C++0x, it was the name for the standard before it was released / finalized. Once it was finalized (in the year 2011), we were able to name it properly. That is, C++11 . This way I’m using the correct one. Then I got an error on include < cstdint>, but I found the directory of the headers ( /usr/include/c++/4.2.1). So I included #include in the main file. But now I’m getting error on type_traits (inside c++ folder), when using c++ standard library. The errors are in the use of undeclared identifier nullptr_t (I got 4 errors). If I try to compile with GNU, the crhono.h file is not found.
I set the C++ language dialect to GNU 11 and C++ 11 (tried with both), and libstdc++ (GNU C++ standard library). I'm using C++0x as my standard, on linux, (and Visual Studio 2010 as my standard on Windows). I use c++0x instead of c++11x for two reasons:
#include file not found You might need to google a bit to find out the equivalent on your system. Or maybe it's simply not needed. You could try commenting it out, and see what errors you get in its place (if any). Then, eithre leave it commented, or replace with the equivalent #include for your system. Then, we can probably add an #ifdef around it, so that it generalizes to build on all systems. — |
Can you put full build output from both situations into gists please, and send me the gist url? (gist is at http://gist.github.com ) |
I comment in the first line some information about it. https://gist.github.com/areeberg/009e9473b1937b27ba5a9f45cc283722 https://gist.github.com/areeberg/31a06090dbd85ed8964ad5b947a86826 Thank you, Can you put full build output from both situations into gists please, and send me the gist url? (gist is at http://gist.github.com [http://gist.github.com] ) — |
k. I kind of want to see the exact output, on your commandline. For example, you can do:
... and send me the contents of out.txt |
Hello Hugh, As I´m trying to run it with XCode, I don´t have a makefile (just a .xcodeproj). Alexandre Reeberg de Mello areeberg@gmail.com make -j 4 > out.txt 2>&1 ... and send me the contents of out.txt — |
Ah, well, somewhere you should have some sort of compiler output. At least, Visual Studio provides compiler output. Can you provide me a screenshot please? But, basically, I doubt I can help much: |
closing this since no recent information. Please feel free to add additional information, and reopen :-) |
Hello,
Is there any tutorial on how to install it on mac and run with XCode? It could be very helpful.
If I install it correctly, I can make an tutorial, but for now I can't help very much.
Thank you.
The text was updated successfully, but these errors were encountered: