graphific / DeepDreamVideo

implementing deep dream on video
GNU General Public License v2.0
2.12k stars 285 forks source link

Error with open ocl dir #59

Open sliterok opened 8 years ago

sliterok commented 8 years ago

Ubuntu 14.04 LTS Running on Asus R9 270X Using OpenCL Caffe. https://github.com/amd/OpenCL-caffe (Probably it has caused the problem. Same thing as here https://github.com/amd/OpenCL-caffe/issues/22)

sliter@UbuntuPC:~/DeepDreamVideo$ python 2_dreaming_time.py -i ~/frames/ -o ~/frames/ -it jpg --gpu 0 --model_path ~/clcaffe/models/bvlc_googlenet/ --model_name bvlc_googlenet.caffemodel
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0114 01:16:11.860035 29129 device.cpp:233] Number of platforms found:1
I0114 01:16:11.860060 29129 device.cpp:265]     CL_PLATFORM_NAME    AMD Accelerated Parallel Processing
I0114 01:16:11.860065 29129 device.cpp:265]     CL_PLATFORM_PROFILE FULL_PROFILE
I0114 01:16:11.860069 29129 device.cpp:265]     CL_PLATFORM_VERSION OpenCL 2.0 AMD-APP (1729.3)
I0114 01:16:11.860071 29129 device.cpp:265]     CL_PLATFORM_VENDOR  Advanced Micro Devices, Inc.
I0114 01:16:11.860074 29129 device.cpp:265]     CL_PLATFORM_EXTENSIONS  cl_khr_icd cl_amd_event_callback cl_amd_offline_devices 
I0114 01:16:11.860079 29129 device.cpp:289] Number of devices found:1
I0114 01:16:11.860081 29129 device.cpp:291]     DeviceID:   0x33c4a60
I0114 01:16:11.860086 29129 device.cpp:380]      Device Type:   CL_DEVICE_TYPE_GPU
I0114 01:16:11.860090 29129 device.cpp:407]     Is it integrated GPU?:  0
I0114 01:16:11.860092 29129 device.cpp:407]     Max clock frequency MHz:    1120
I0114 01:16:11.860095 29129 device.cpp:407]     Host-Device unified mem:    0
I0114 01:16:11.860098 29129 device.cpp:407]     ECC support:    0
I0114 01:16:11.860101 29129 device.cpp:407]     Endian little:  1
I0114 01:16:11.860105 29129 device.cpp:407]     Max compute units:  20
I0114 01:16:11.860107 29129 device.cpp:407]     Max work group size:    256
I0114 01:16:11.860110 29129 device.cpp:407]     Max work item dimensions:   3
I0114 01:16:11.860113 29129 device.cpp:407]     Max work item sizes:    0x100
I0114 01:16:11.860116 29129 device.cpp:403]      CL_DEVICE_QUEUE_PROPERTIES:    CL_QUEUE_PROFILING_ENABLE
I0114 01:16:11.860121 29129 device.cpp:391]      CL_DEVICE_EXECUTION_CAPABILITIES:  CL_EXEC_KERNEL
I0114 01:16:11.860123 29129 device.cpp:407]     Max mem alloc size: 612630528
I0114 01:16:11.860126 29129 device.cpp:407]     Global mem size:    1482686464
I0114 01:16:11.860129 29129 device.cpp:407]     Local mem size: 32768
I0114 01:16:11.860132 29129 device.cpp:90] Picked default device type : dGPU 0
Err: Open ocl dir failed!
Segmentation fault (core dumped)
HUN-Harlequin commented 8 years ago

I think your problem originates from: .... /src/caffe/device.cpp file.

It searches for some OpenCL programs in "./src/caffe/ocl/". If you move to "." (should be the caffe root dir) you should be able to run your program from here.

Alternatively you might be able to copy the required folders & files keeping their paths to into the folder you want to run your command from.