{"action":"created","issue":{"url":"https://api.github.com/repos/hughperkins/cltorch/issues/61","repository_url":"https://api.github.com/repos/hughperkins/cltorch","labels_url":"https://api.github.com/repos/hughperkins/cltorch/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/hughperkins/cltorch/issues/61/comments","events_url":"https://api.github.com/repos/hughperkins/cltorch/issues/61/events","html_url":"https://github.com/hughperkins/cltorch/issues/61","id":143477999,"number":61,"title":"Cltorch Unit test failed","user":{"login":"HBQ15","id":3153011,"avatar_url":"https://avatars.githubusercontent.com/u/3153011?v=3","gravatar_id":"","url":"https://api.github.com/users/HBQ15","html_url":"https://github.com/HBQ15","followers_url":"https://api.github.com/users/HBQ15/followers","following_url":"https://api.github.com/users/HBQ15/following{/other_user}","gists_url":"https://api.github.com/users/HBQ15/gists{/gist_id}","starred_url":"https://api.github.com/users/HBQ15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HBQ15/subscriptions","organizations_url":"https://api.github.com/users/HBQ15/orgs","repos_url":"https://api.github.com/users/HBQ15/repos","events_url":"https://api.github.com/users/HBQ15/events{/privacy}","received_events_url":"https://api.github.com/users/HBQ15/received_events","type":"User","site_admin":false},"labels":[{"id":219507742,"url":"https://api.github.com/repos/hughperkins/cltorch/labels/bug","name":"bug","color":"fc2929","default":true},{"id":219507745,"url":"https://api.github.com/repos/hughperkins/cltorch/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2016-03-25T11:03:35Z","updated_at":"2016-12-27T16:00:32Z","closed_at":"2016-03-28T08:32:47Z","body":"I get the following when I ruin the unit test\nhanbaoquan@HBQM ~/torch/install/lib $ luajit -l cltorch -e 'cltorch.test()'\nrunning tests...\naftter requiring cltorch.unit_storage\nRunning 2 tests\n1/2 test_get ............................................................ [WAIT]\n1/2 test_get ............................................................ [ERROR]\n2/2 test_basic .......................................................... [WAIT]\n2/2 test_basic .......................................................... [ERROR]\n## Completed 0 asserts in 2 tests with 0 failures and 2 errors and 1 warning\n\ntest_get\n Function call failed\nSomething went wrong: OpenCL library not found at /tmp/luarocks_cltorch-scm-1-7915/cltorch/cltorch/src/torch/generic/Storage.cpp:101\nstack traceback:\n    [C]: at 0x7f71e3b571f0\n    [C]: in function 'ClStorage'\n    ...uan/torch/install/share/lua/5.1/cltorch/unit_storage.lua:64: in function 'v'\n    ...uan/torch/install/share/lua/5.1/cltorch/unit_storage.lua:84: in function <...uan/torch/install/share/lua/5.1/cltorch/unit_storage.lua:82>\n    [C]: in function 'xpcall'\n    .../hanbaoquan/torch/install/share/lua/5.1/torch/Tester.lua:476: in function '_pcall'\n    .../hanbaoquan/torch/install/share/lua/5.1/torch/Tester.lua:436: in function '_run'\n    .../hanbaoquan/torch/install/share/lua/5.1/torch/Tester.lua:354: in function 'run'\n    ...uan/torch/install/share/lua/5.1/cltorch/unit_storage.lua:91: in function 'test'\n    .../hanbaoquan/torch/install/share/lua/5.1/cltorch/Test.lua:8: in function 'test'\n    (command line):1: in main chunk\n    [C]: at 0x00406670\n\n---\n\ntest_basic\n Function call failed\nNo OpenCL-enabled devices available at /tmp/luarocks_cltorch-scm-1-7915/cltorch/cltorch/src/lib/THClGeneral.cpp:139\nstack traceback:\n    [C]: at 0x7f71e3b571f0\n    [C]: in function 'ClStorage'\n    ...uan/torch/install/share/lua/5.1/cltorch/unit_storage.lua:25: in function 'v'\n    ...uan/torch/install/share/lua/5.1/cltorch/unit_storage.lua:84: in function <...uan/torch/install/share/lua/5.1/cltorch/unit_storage.lua:82>\n    [C]: in function 'xpcall'\n    .../hanbaoquan/torch/install/share/lua/5.1/torch/Tester.lua:476: in function '_pcall'\n    .../hanbaoquan/torch/install/share/lua/5.1/torch/Tester.lua:436: in function '_run'\n    .../hanbaoquan/torch/install/share/lua/5.1/torch/Tester.lua:354: in function 'run'\n    ...uan/torch/install/share/lua/5.1/cltorch/unit_storage.lua:91: in function 'test'\n    .../hanbaoquan/torch/install/share/lua/5.1/cltorch/Test.lua:8: in function 'test'\n    (command line):1: in main chunk\n    [C]: at 0x00406670\n\n---\n\nShould use TestSuite rather than plain lua table\n\n---\n\nluajit: .../hanbaoquan/torch/install/share/lua/5.1/torch/Tester.lua:362: An error was found while running tests!\nstack traceback:\n    [C]: in function 'assert'\n    .../hanbaoquan/torch/install/share/lua/5.1/torch/Tester.lua:362: in function 'run'\n    ...uan/torch/install/share/lua/5.1/cltorch/unit_storage.lua:91: in function 'test'\n    .../hanbaoquan/torch/install/share/lua/5.1/cltorch/Test.lua:8: in function 'test'\n    (command line):1: in main chunk\n    [C]: at 0x00406670\n\nI have installed all the requested libraries, clinfo showws:\nhanbaoquan@HBQM ~/torch/install/lib $ clinfo\nNumber of platforms:                 1\n  Platform Profile:              FULL_PROFILE\n  Platform Version:              OpenCL 2.0 AMD-APP (1912.5)\n  Platform Name:                 AMD Accelerated Parallel Processing\n  Platform Vendor:               Advanced Micro Devices, Inc.\n  Platform Extensions:               cl_khr_icd cl_amd_event_callback cl_amd_offline_devices \n\n  Platform Name:                 AMD Accelerated Parallel Processing\nNumber of devices:               3\n  Device Type:                   CL_DEVICE_TYPE_GPU\n  Vendor ID:                     1002h\n  Board name:                    AMD Radeon R9 200 Series\n  Device Topology:               PCI[ B#1, D#0, F#0 ]\n  Max compute units:                 44\n  Max work items dimensions:             3\n    Max work items[0]:               256\n    Max work items[1]:               256\n    Max work items[2]:               256\n  Max work group size:               256\n  Preferred vector width char:           4\n  Preferred vector width short:          2\n  Preferred vector width int:            1\n  Preferred vector width long:           1\n  Preferred vector width float:          1\n  Preferred vector width double:         1\n  Native vector width char:          4\n  Native vector width short:             2\n  Native vector width int:           1\n  Native vector width long:          1\n  Native vector width float:             1\n  Native vector width double:            1\n  Max clock frequency:               1000Mhz\n  Address bits:                  64\n  Max memory allocation:             2632946688\n  Image support:                 Yes\n  Max number of images read arguments:       128\n  Max number of images write arguments:      64\n  Max image 2D width:                16384\n  Max image 2D height:               16384\n  Max image 3D width:                2048\n  Max image 3D height:               2048\n  Max image 3D depth:                2048\n  Max samplers within kernel:            16\n  Max size of kernel argument:           1024\n  Alignment (bits) of base address:      2048\n  Minimum alignment (bytes) for any datatype:    128\n  Single precision floating point capability\n    Denorms:                     No\n    Quiet NaNs:                  Yes\n    Round to nearest even:           Yes\n    Round to zero:               Yes\n    Round to +ve and infinity:           Yes\n    IEEE754-2008 fused multiply-add:         Yes\n  Cache type:                    Read/Write\n  Cache line size:               64\n  Cache size:                    16384\n  Global memory size:                3867691072\n  Constant buffer size:              65536\n  Max number of constant args:           8\n  Local memory type:                 Scratchpad\n  Local memory size:                 32768\n  Max pipe arguments:                16\n  Max pipe active reservations:          16\n  Max pipe packet size:              2632946688\n  Max global variable size:          2369651968\n  Max global variable preferred total size:  3867691072\n  Max read/write image args:             64\n  Max on device events:              1024\n  Queue on device max size:          8388608\n  Max on device queues:              1\n  Queue on device preferred size:        262144\n  SVM capabilities:  \n    Coarse grain buffer:             Yes\n    Fine grain buffer:               Yes\n    Fine grain system:               No\n    Atomics:                     No\n  Preferred platform atomic alignment:       0\n  Preferred global atomic alignment:         0\n  Preferred local atomic alignment:      0\n  Kernel Preferred work group size multiple:     64\n  Error correction support:          0\n  Unified memory for Host and Device:        0\n  Profiling timer resolution:            1\n  Device endianess:              Little\n  Available:                     Yes\n  Compiler available:                Yes\n  Execution capabilities:  \n    Execute OpenCL kernels:          Yes\n    Execute native function:             No\n  Queue on Host properties:  \n    Out-of-Order:                No\n    Profiling :                  Yes\n  Queue on Device properties:  \n    Out-of-Order:                Yes\n    Profiling :                  Yes\n  Platform ID:                   0x7f70034b7a18\n  Name:                      Hawaii\n  Vendor:                    Advanced Micro Devices, Inc.\n  Device OpenCL C version:           OpenCL C 2.0 \n  Driver version:                1912.5 (VM)\n  Profile:                   FULL_PROFILE\n  Version:                   OpenCL 2.0 AMD-APP (1912.5)\n  Extensions:                    cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_khr_gl_depth_images cl_ext_atomic_counters_32 cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_image2d_from_buffer cl_khr_spir cl_khr_subgroups cl_khr_gl_event cl_khr_depth_images cl_khr_mipmap_image cl_khr_mipmap_image_writes \n\n  Device Type:                   CL_DEVICE_TYPE_GPU\n  Vendor ID:                     1002h\n  Board name:  \n  Device Topology:               PCI[ B#2, D#0, F#0 ]\n  Max compute units:                 44\n  Max work items dimensions:             3\n    Max work items[0]:               256\n    Max work items[1]:               256\n    Max work items[2]:               256\n  Max work group size:               256\n  Preferred vector width char:           4\n  Preferred vector width short:          2\n  Preferred vector width int:            1\n  Preferred vector width long:           1\n  Preferred vector width float:          1\n  Preferred vector width double:         1\n  Native vector width char:          4\n  Native vector width short:             2\n  Native vector width int:           1\n  Native vector width long:          1\n  Native vector width float:             1\n  Native vector width double:            1\n  Max clock frequency:               1050Mhz\n  Address bits:                  64\n  Max memory allocation:             3008913408\n  Image support:                 Yes\n  Max number of images read arguments:       128\n  Max number of images write arguments:      64\n  Max image 2D width:                16384\n  Max image 2D height:               16384\n  Max image 3D width:                2048\n  Max image 3D height:               2048\n  Max image 3D depth:                2048\n  Max samplers within kernel:            16\n  Max size of kernel argument:           1024\n  Alignment (bits) of base address:      2048\n  Minimum alignment (bytes) for any datatype:    128\n  Single precision floating point capability\n    Denorms:                     No\n    Quiet NaNs:                  Yes\n    Round to nearest even:           Yes\n    Round to zero:               Yes\n    Round to +ve and infinity:           Yes\n    IEEE754-2008 fused multiply-add:         Yes\n  Cache type:                    Read/Write\n  Cache line size:               64\n  Cache size:                    16384\n  Global memory size:                4251256704\n  Constant buffer size:              65536\n  Max number of constant args:           8\n  Local memory type:                 Scratchpad\n  Local memory size:                 32768\n  Max pipe arguments:                16\n  Max pipe active reservations:          16\n  Max pipe packet size:              3008913408\n  Max global variable size:          2708022016\n  Max global variable preferred total size:  4251256704\n  Max read/write image args:             64\n  Max on device events:              1024\n  Queue on device max size:          8388608\n  Max on device queues:              1\n  Queue on device preferred size:        262144\n  SVM capabilities:  \n    Coarse grain buffer:             Yes\n    Fine grain buffer:               Yes\n    Fine grain system:               No\n    Atomics:                     No\n  Preferred platform atomic alignment:       0\n  Preferred global atomic alignment:         0\n  Preferred local atomic alignment:      0\n  Kernel Preferred work group size multiple:     64\n  Error correction support:          0\n  Unified memory for Host and Device:        0\n  Profiling timer resolution:            1\n  Device endianess:              Little\n  Available:                     Yes\n  Compiler available:                Yes\n  Execution capabilities:  \n    Execute OpenCL kernels:          Yes\n    Execute native function:             No\n  Queue on Host properties:  \n    Out-of-Order:                No\n    Profiling :                  Yes\n  Queue on Device properties:  \n    Out-of-Order:                Yes\n    Profiling :                  Yes\n  Platform ID:                   0x7f70034b7a18\n  Name:                      Hawaii\n  Vendor:                    Advanced Micro Devices, Inc.\n  Device OpenCL C version:           OpenCL C 2.0 \n  Driver version:                1912.5 (VM)\n  Profile:                   FULL_PROFILE\n  Version:                   OpenCL 2.0 AMD-APP (1912.5)\n  Extensions:                    cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_khr_gl_depth_images cl_ext_atomic_counters_32 cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_image2d_from_buffer cl_khr_spir cl_khr_subgroups cl_khr_gl_event cl_khr_depth_images cl_khr_mipmap_image cl_khr_mipmap_image_writes \n\n  Device Type:                   CL_DEVICE_TYPE_CPU\n  Vendor ID:                     1002h\n  Board name:  \n  Max compute units:                 8\n  Max work items dimensions:             3\n    Max work items[0]:               1024\n    Max work items[1]:               1024\n    Max work items[2]:               1024\n  Max work group size:               1024\n  Preferred vector width char:           16\n  Preferred vector width short:          8\n  Preferred vector width int:            4\n  Preferred vector width long:           2\n  Preferred vector width float:          8\n  Preferred vector width double:         4\n  Native vector width char:          16\n  Native vector width short:             8\n  Native vector width int:           4\n  Native vector width long:          2\n  Native vector width float:             8\n  Native vector width double:            4\n  Max clock frequency:               4200Mhz\n  Address bits:                  64\n  Max memory allocation:             8394331136\n  Image support:                 Yes\n  Max number of images read arguments:       128\n  Max number of images write arguments:      64\n  Max image 2D width:                8192\n  Max image 2D height:               8192\n  Max image 3D width:                2048\n  Max image 3D height:               2048\n  Max image 3D depth:                2048\n  Max samplers within kernel:            16\n  Max size of kernel argument:           4096\n  Alignment (bits) of base address:      1024\n  Minimum alignment (bytes) for any datatype:    128\n  Single precision floating point capability\n    Denorms:                     Yes\n    Quiet NaNs:                  Yes\n    Round to nearest even:           Yes\n    Round to zero:               Yes\n    Round to +ve and infinity:           Yes\n    IEEE754-2008 fused multiply-add:         Yes\n  Cache type:                    Read/Write\n  Cache line size:               64\n  Cache size:                    32768\n  Global memory size:                33577324544\n  Constant buffer size:              65536\n  Max number of constant args:           8\n  Local memory type:                 Global\n  Local memory size:                 32768\n  Max pipe arguments:                16\n  Max pipe active reservations:          16\n  Max pipe packet size:              4099363840\n  Max global variable size:          1879048192\n  Max global variable preferred total size:  1879048192\n  Max read/write image args:             64\n  Max on device events:              0\n  Queue on device max size:          0\n  Max on device queues:              0\n  Queue on device preferred size:        0\n  SVM capabilities:  \n    Coarse grain buffer:             No\n    Fine grain buffer:               No\n    Fine grain system:               No\n    Atomics:                     No\n  Preferred platform atomic alignment:       0\n  Preferred global atomic alignment:         0\n  Preferred local atomic alignment:      0\n  Kernel Preferred work group size multiple:     1\n  Error correction support:          0\n  Unified memory for Host and Device:        1\n  Profiling timer resolution:            1\n  Device endianess:              Little\n  Available:                     Yes\n  Compiler available:                Yes\n  Execution capabilities:  \n    Execute OpenCL kernels:          Yes\n    Execute native function:             Yes\n  Queue on Host properties:  \n    Out-of-Order:                No\n    Profiling :                  Yes\n  Queue on Device properties:  \n    Out-of-Order:                No\n    Profiling :                  No\n  Platform ID:                   0x7f70034b7a18\n  Name:                      Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz\n  Vendor:                    GenuineIntel\n  Device OpenCL C version:           OpenCL C 1.2 \n  Driver version:                1912.5 (sse2,avx)\n  Profile:                   FULL_PROFILE\n  Version:                   OpenCL 1.2 AMD-APP (1912.5)\n  Extensions:                    cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_spir cl_khr_gl_event \n\nI'm not sure what I'm missing, please help.\nI'm using Linux mint 17.3. System specs are:\n\nIntel 4770k\nAMD R9-290x\n16Gb Ram\n"},"comment":{"url":"https://api.github.com/repos/hughperkins/cltorch/issues/comments/269344686","html_url":"https://github.com/hughperkins/cltorch/issues/61#issuecomment-269344686","issue_url":"https://api.github.com/repos/hughperkins/cltorch/issues/61","id":269344686,"user":{"login":"hughperkins","id":123560,"avatar_url":"https://avatars.githubusercontent.com/u/123560?v=3","gravatar_id":"","url":"https://api.github.com/users/hughperkins","html_url":"https://github.com/hughperkins","followers_url":"https://api.github.com/users/hughperkins/followers","following_url":"https://api.github.com/users/hughperkins/following{/other_user}","gists_url":"https://api.github.com/users/hughperkins/gists{/gist_id}","starred_url":"https://api.github.com/users/hughperkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hughperkins/subscriptions","organizations_url":"https://api.github.com/users/hughperkins/orgs","repos_url":"https://api.github.com/users/hughperkins/repos","events_url":"https://api.github.com/users/hughperkins/events{/privacy}","received_events_url":"https://api.github.com/users/hughperkins/received_events","type":"User","site_admin":false},"created_at":"2016-12-27T16:00:32Z","updated_at":"2016-12-27T16:00:32Z","body":"(Note: you might want to open a new issue for this, so people see it.  Maybe someone can help you to fix it?)"}}
{"actor":{"display_login":"hughperkins"}}