amd / OpenCL-caffe

This is a Experimental version of OpenCL by AMD Research, we now recommend you to use The official BVLC Caffe OpenCL branch is over at Caffe branch now at https://github.com/BVLC/caffe/tree/opencl
Other
517 stars 152 forks source link

Error running tests: "Don't understand command line argument "-x"" #11

Closed hughperkins closed 8 years ago

hughperkins commented 9 years ago

When running make runtest, get error Don't understand command line argument "-x":

[  1%] Built target proto
[ 80%] Built target caffe
[ 80%] Built target caffe.bin
[ 81%] [ 81%] Built target compute_image_mean
Built target device_query
[ 81%] Built target convert_imageset
[ 83%] Built target net_speed_benchmark
[ 85%] [ 85%] [ 86%] Built target extract_features
Built target test_net
Built target finetune_net
[ 88%] Built target train_net
[ 90%] [ 91%] Built target upgrade_net_proto_binary
Built target upgrade_net_proto_text
[ 93%] Built target classification
[ 96%] Built target convert_cifar_data
[ 98%] Built target convert_mnist_data
[100%] [100%] Built target pycaffe
Built target convert_mnist_siamese_data
[  1%] Built target proto
[  1%] Built target gtest
[ 55%] Built target caffe
[100%] Built target test.testbin
libdc1394 error: Failed to initialize libdc1394
Current device id: 0
Err: Failed to build program
Error in processing command line: Don't understand command line argument "-x"!Note: Google Test filter = -*GPU*
Note: Randomizing tests' orders with a seed of 3572 .
[==========] Running 1297 tests from 201 test cases.
[----------] Global test environment set-up.
[----------] 1 test from ProtoTest
[ RUN      ] ProtoTest.TestSerialization
Printing in binary format.

testTest
Printing in text format.
name: "test"
type: "Test"

[       OK ] ProtoTest.TestSerialization (2 ms)
[----------] 1 test from ProtoTest (2 ms total)

[----------] 8 tests from CPUMathFunctionsTest/0, where TypeParam = float
[ RUN      ] CPUMathFunctionsTest/0.TestSgnbit
Err: Failed to build program
Error in processing command line: Don't understand command line argument "-x"!*** Aborted at 1444114004 (unix time) try "date -d @1444114004" if you are using GNU date ***
PC: @                0x0 (unknown)
*** SIGSEGV (@0x0) received by PID 12722 (TID 0x2b6f33170840) from PID 0; stack trace: ***
    @     0x2b6f3384a340 (unknown)
    @                0x0 (unknown)
Segmentation fault (core dumped)

Platform:

Build method:

sudo apt-get install -y libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler
sudo apt-get install -y libgflags-dev libgoogle-glog-dev liblmdb-dev
sudo apt-get install -y --no-install-recommends libboost-all-dev
sudo apt-get install -y libatlas-base-dev

git clone https://github.com/amd/OpenCL-caffe.git
cd OpenCL-caffe

export CLBLAS_ROOT=$HOME/torch/install
mkdir build
cd build
cmake .. -DCLBLAS_LIBRARIES=/home/ubuntu/torch/install/lib/libclBLAS.so
make -j 8

Test method:

(
cd build
make runtest
)
kuke commented 9 years ago

This error comes from building OpenCL kernels on NV's platform, temporarily we don't support NV's GPUs.

hughperkins commented 9 years ago

Ah... well... that certainly sounds a reasonable approach, since presumably the goal is to encourage AMD adoption. Sort of off-topic, ... all my cloud servers have NVIDIA K520s, ie using Amazon AWS. Gentle plug that it'd be cool to be able to rent AMD GPU cloud instances somehow :-)