GithubHelp home page GithubHelp logo

Comments (14)

Dexdev08 avatar Dexdev08 commented on May 27, 2024

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 [email protected] wrote:

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.


Reply to this email directly or view it on GitHub
#56.

from deepcl.

hughperkins avatar hughperkins commented on May 27, 2024

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

from deepcl.

areeberg avatar areeberg commented on May 27, 2024

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!
Alexandre Reeberg de Mello [email protected]
via CloudMagic for Mac [https://cloudmagic.com/k/d/mailapp?ct=dx&cv=7.6.18&pv=10.11.4&source=email_footer_2]

from deepcl.

hughperkins avatar hughperkins commented on May 27, 2024

I'm not sure I understand your question

from deepcl.

Dexdev08 avatar Dexdev08 commented on May 27, 2024

I think what alexandre is asking if he can use deepcl in obj-c /c++... I
dont really use xcode.

But there is a c++ library so one should be able to use it for c++.
On Tue, 29 Mar 2016 at 19:04 Hugh Perkins [email protected] wrote:

I'm not sure I understand your question


You are receiving this because you commented.

Reply to this email directly or view it on GitHub
#56 (comment)

from deepcl.

areeberg avatar areeberg commented on May 27, 2024

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,
Alexandre Reeberg de Mello [email protected]
via CloudMagic for Mac [https://cloudmagic.com/k/d/mailapp?ct=dx&cv=7.6.18&pv=10.11.4&source=email_footer_2]
On ter, mar 29, 2016 at 8:04 AM, Hugh Perkins [email protected] wrote:
I'm not sure I understand your question


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub [https://github.com//issues/56#issuecomment-202832740]

from deepcl.

hughperkins avatar hughperkins commented on May 27, 2024

for the failed tests:

  • all tests prefixed SLOW_, I dont normally run, so it's not too weird if they fail. Ignore
  • all tests prefixed DATA_ need some specific dataset downloaded ,in this case norb. Without that dataset downloaded, it's normal that it fails, so ignore. (It's only used to test the norbloader functionality anyway, so not some fundamental test)

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:

  • it's approximately compatible with Visual Studio 2010 (not really the case with c++11x, which has lots of surprises when I try to build on VS2010...)
  • it widens the number of linux-based people who can build it too (some people are on gcc 4.4 and so on)

#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.

(If I've accidentally skipped something in your questions, please restate, not intentional)

from deepcl.

areeberg avatar areeberg commented on May 27, 2024

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.
Thank you again!
Alexandre Reeberg de Mello [email protected]
via CloudMagic for Mac [https://cloudmagic.com/k/d/mailapp?ct=dx&cv=7.6.18&pv=10.11.4&source=email_footer_2]
On ter, mar 29, 2016 at 8:30 PM, Hugh Perkins [email protected] wrote:
for the failed tests:

  • all tests prefixed SLOW_, I dont normally run, so it's not too weird if they fail. Ignore
  • all tests prefixed DATA_ need some specific dataset downloaded ,in this case norb. Without that dataset downloaded, it's normal that it fails, so ignore. (It's only used to test the norbloader functionality anyway, so not some fundamental test)

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:

  • it's approximately compatible with Visual Studio 2010 (not really the case with c++11x, which has lots of surprises when I try to build on VS2010...)
  • it widens the number of linux-based people who can build it too (some people are on gcc 4.4 and so on)

#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.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub [https://github.com//issues/56#issuecomment-203157378]

from deepcl.

hughperkins avatar hughperkins commented on May 27, 2024

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.

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 )

from deepcl.

areeberg avatar areeberg commented on May 27, 2024

I comment in the first line some information about it. https://gist.github.com/areeberg/009e9473b1937b27ba5a9f45cc283722 https://gist.github.com/areeberg/31a06090dbd85ed8964ad5b947a86826

Thank you,
Alexandre Reeberg de Mello [email protected]
via CloudMagic for Mac [https://cloudmagic.com/k/d/mailapp?ct=dx&cv=7.6.18&pv=10.11.4&source=email_footer_2]
On qua, mar 30, 2016 at 10:37 AM, Hugh Perkins [email protected] wrote:
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.

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] )


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub [https://github.com//issues/56#issuecomment-203436928]

from deepcl.

hughperkins avatar hughperkins commented on May 27, 2024

k. I kind of want to see the exact output, on your commandline. For example, you can do:

make -j 4 > out.txt 2>&1

... and send me the contents of out.txt

from deepcl.

areeberg avatar areeberg commented on May 27, 2024

Hello Hugh, As I´m trying to run it with XCode, I don´t have a makefile (just a .xcodeproj).

Alexandre Reeberg de Mello [email protected]
via CloudMagic for Mac [https://cloudmagic.com/k/d/mailapp?ct=dx&cv=7.6.18&pv=10.11.4&source=email_footer_2]
On qua, mar 30, 2016 at 12:01 PM, Hugh Perkins [email protected] wrote:
k. I kind of want to see the exact output, on your commandline. For example, you can do:

make -j 4 > out.txt 2>&1

... and send me the contents of out.txt


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub [https://github.com//issues/56#issuecomment-203477406]

from deepcl.

hughperkins avatar hughperkins commented on May 27, 2024

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: chrono library is part of the C++11 standard. If chrono cant be loaded, then your compiler doesnt actually support C++11, and you'll need to dig a bit to find out what to use instead. You might need to modify the (very few) classes that use chrono library, of which there are approximately two.

from deepcl.

hughperkins avatar hughperkins commented on May 27, 2024

closing this since no recent information. Please feel free to add additional information, and reopen :-)

from deepcl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.