Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Errors during RUNTEST on MacOs 10.12 and unable to make pycaffe

137 views
Skip to first unread message

Matthias Macé

unread,
Jul 20, 2017, 3:42:04 AM7/20/17
to Caffe Users, matthi...@orange.fr
Hi all
I am unable to complete the daily process until the end on a MacBookPro 2017
## computer

 Nom del model: MacBook Pro

  Identificador del model: MacBookPro14,3

  Nom del processador: Intel Core i7

  Velocitat del processador: 2,9 GHz

  Nombre de processadors: 1

  Nombre total de nuclis: 4

  Memòria cau L2 (per nucli): 256 KB

  Memòria cau L3: 8 MB

  Memòria: 16 GB

  Versió de la ROM d’arrencada: MBP143.0159.B00

  Versió d’SMC (sistema): 2.45f0

  Número de sèrie (sistema): C02TV4X6HTD6

  UUID del maquinari: 46359203-1C31-59C8-B15F-9055DE7CE13C

GPU

  Model del chipset: Radeon Pro 560

  Tipus: GPU

  Bus: PCIe

  Amplada de canal PCIe: x8

  VRAM (total): 4096 MB

  Fabricant: ATI (0x1002)

  ID del dispositiu: 0x67ef

  ID de la revisió: 0x00c0

  Revisió de la ROM: 113-C980AJ-927

  Canvi automàtic de gràfics: Compatible

  Versió de gMux: 4.0.29 [3.2.8]

  Versió del controlador EFI: 01.00.927

  Metal: Compatible


### steps to build

following Arthur Carabott's tutorial for using Radeon chipset and OpenCL

https://medium.com/@acarabott/caffe-opencl-macos-sierra-amd-2e979518503

(using brew python and not conda)


### Errors

Everything fine in make all -j8 and make test -j8

# then when trying make runtest -j8, everything fine except :


[----------] Global test environment tear-down

[==========] 2066 tests from 274 test cases ran. (574448 ms total)

[  PASSED  ] 2058 tests.

[  FAILED  ] 8 tests, listed below:

[  FAILED  ] LRNLayerTest/2.TestForwardAcrossChannelsLargeRegion, where TypeParam = N5caffe9GPUDeviceIfEE

[  FAILED  ] LRNLayerTest/2.TestGradientAcrossChannelsLargeRegion, where TypeParam = N5caffe9GPUDeviceIfEE

[  FAILED  ] LRNLayerTest/2.TestForwardAcrossChannels, where TypeParam = N5caffe9GPUDeviceIfEE

[  FAILED  ] LRNLayerTest/2.TestGradientAcrossChannels, where TypeParam = N5caffe9GPUDeviceIfEE

[  FAILED  ] LRNLayerTest/3.TestGradientAcrossChannels, where TypeParam = N5caffe9GPUDeviceIdEE

[  FAILED  ] LRNLayerTest/3.TestForwardAcrossChannels, where TypeParam = N5caffe9GPUDeviceIdEE

[  FAILED  ] LRNLayerTest/3.TestGradientAcrossChannelsLargeRegion, where TypeParam = N5caffe9GPUDeviceIdEE

[  FAILED  ] LRNLayerTest/3.TestForwardAcrossChannelsLargeRegion, where TypeParam = N5caffe9GPUDeviceIdEE


 8 FAILED TESTS

make: *** [runtest] Error 1


# Running make pycaffe also failed :

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:468:15: error: C++ requires a type specifier for all declarations

    char_type toupper(char_type __c) const

              ^

/usr/include/python2.7/pyport.h:731:29: note: expanded from macro 'toupper'

#define toupper(c) towupper(btowc(c))


/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:474:48: error: too many arguments provided to function-like macro invocation

    const char_type* toupper(char_type* __low, const char_type* __high) const

                                               ^

/usr/include/python2.7/pyport.h:731:9: note: macro 'toupper' defined here

#define toupper(c) towupper(btowc(c))


/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:474:29: error: expected ';' at end of declaration list

    const char_type* toupper(char_type* __low, const char_type* __high) const

                            ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:486:48: error: too many arguments provided to function-like macro invocation

    const char_type* tolower(char_type* __low, const char_type* __high) const

                                               ^

/usr/include/python2.7/pyport.h:729:9: note: macro 'tolower' defined here

#define tolower(c) towlower(btowc(c))


/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:470:27: error: use of undeclared identifier '__c'

        return do_toupper(__c);

                          ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:577:15: error: C++ requires a type specifier for all declarations

    char_type toupper(char_type __c) const

              ^

/usr/include/python2.7/pyport.h:731:29: note: expanded from macro 'toupper'

#define toupper(c) towupper(btowc(c))

                            ^


/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:583:48: error: too many arguments provided to function-like macro invocation

    const char_type* toupper(char_type* __low, const char_type* __high) const

                                               ^

/usr/include/python2.7/pyport.h:731:9: note: macro 'toupper' defined here

#define toupper(c) towupper(btowc(c))

        ^


/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:583:29: error: expected ';' at end of declaration list

    const char_type* toupper(char_type* __low, const char_type* __high) const

                            ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:595:48: error: too many arguments provided to function-like macro invocation

    const char_type* tolower(char_type* __low, const char_type* __high) const

                                               ^

/usr/include/python2.7/pyport.h:729:9: note: macro 'tolower' defined here

#define tolower(c) towlower(btowc(c))

        ^


/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:579:27: error: use of undeclared identifier '__c'

        return do_toupper(__c);

                          ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:705:21: error: too many arguments provided to function-like macro invocation

isspace(_CharT __c, const locale& __loc)

                    ^

/usr/include/python2.7/pyport.h:725:9: note: macro 'isspace' defined here

#define isspace(c) iswspace(btowc(c))

        ^


/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:705:1: error: declaration conflicts with target of using declaration already in scope

isspace(_CharT __c, const locale& __loc)

^

/usr/include/ctype.h:267:1: note: target of using declaration

isspace(int _c)

^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cctype:70:9: note: using declaration

using ::isspace;

        ^


/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:707:5: error: expected expression

    return use_facet<ctype<_CharT> >(__loc).is(ctype_base::space, __c);

    ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:708:2: error: expected ';' at end of declaration

}

 ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:729:21: error: too many arguments provided to function-like macro invocation

isupper(_CharT __c, const locale& __loc)

                    ^

/usr/include/python2.7/pyport.h:727:9: note: macro 'isupper' defined here

#define isupper(c) iswupper(btowc(c))

        ^


/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:729:1: error: declaration conflicts with target of using declaration already in scope

isupper(_CharT __c, const locale& __loc)

^

/usr/include/ctype.h:273:1: note: target of using declaration

isupper(int _c)

^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cctype:72:9: note: using declaration

using ::isupper;

        ^


/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:731:5: error: expected expression

    return use_facet<ctype<_CharT> >(__loc).is(ctype_base::upper, __c);

    ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:732:2: error: expected ';' at end of declaration

}

 ^

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__locale:737:21: error: too many arguments provided to function-like macro invocation

islower(_CharT __c, const locale& __loc)

                    ^

/usr/include/python2.7/pyport.h:723:9: note: macro 'islower' defined here

#define islower(c) iswlower(btowc(c))

        ^


MANY THANKS FOR THE HELP !


Message has been deleted

Jungwoo Choi

unread,
Aug 7, 2017, 1:39:02 AM8/7/17
to Caffe Users, matthi...@orange.fr
Hi!
I have both of the same issues.
But I solved first one!  

To solve the first issue, you need to select GPU ID on Makefile.config file

Select GPU

Open Makefile.config and follow the instruction below.


160 # The ID of the GPU that 'make runtest' will use to run unit tests.

161 TEST_GPUID := 0

 

change line 161 to  TEST_GPUID := 1


From the test, GPUID:=1 is your external gpu.
And GPUID:=2 is your internal gpu.

Hope somebody solve the second issue too.

2017년 7월 20일 목요일 오후 4시 42분 4초 UTC+9, Matthias Macé 님의 말:

Matthias Macé

unread,
Aug 8, 2017, 9:22:05 AM8/8/17
to Caffe Users, matthi...@orange.fr
Many thanks Jungwoo !! This worked also for me.
Waiting for the second solution !
Reply all
Reply to author
Forward
0 new messages