hughperkins / cltorch

An OpenCL backend for torch.
Other
289 stars 26 forks source link

cltorch.test() completes with 4 errors #47

Closed alexsosn closed 8 years ago

alexsosn commented 8 years ago

Two of them are identical to issues mentioned in #44.

General:

GPU: clinfo output:

Number of platforms:                 1
  Platform Profile:              FULL_PROFILE
  Platform Version:              OpenCL 2.0 AMD-APP (1729.3)
  Platform Name:                 AMD Accelerated Parallel Processing
  Platform Vendor:               Advanced Micro Devices, Inc.
  Platform Extensions:               cl_khr_icd cl_amd_event_callback cl_amd_offline_devices 

  Platform Name:                 AMD Accelerated Parallel Processing
Number of devices:               2
  Device Type:                   CL_DEVICE_TYPE_GPU
  Vendor ID:                     1002h
  Board name:                    AMD Radeon HD 8600M Series
  Device Topology:               PCI[ B#1, D#0, F#0 ]
  Max compute units:                 5
  Max work items dimensions:             3
    Max work items[0]:               256
    Max work items[1]:               256
    Max work items[2]:               256
  Max work group size:               256
  Preferred vector width char:           4
  Preferred vector width short:          2
  Preferred vector width int:            1
  Preferred vector width long:           1
  Preferred vector width float:          1
  Preferred vector width double:         1
  Native vector width char:          4
  Native vector width short:             2
  Native vector width int:           1
  Native vector width long:          1
  Native vector width float:             1
  Native vector width double:            1
  Max clock frequency:               975Mhz
  Address bits:                  32
  Max memory allocation:             1231552512
  Image support:                 Yes
  Max number of images read arguments:       128
  Max number of images write arguments:      8
  Max image 2D width:                16384
  Max image 2D height:               16384
  Max image 3D width:                2048
  Max image 3D height:               2048
  Max image 3D depth:                2048
  Max samplers within kernel:            16
  Max size of kernel argument:           1024
  Alignment (bits) of base address:      2048
  Minimum alignment (bytes) for any datatype:    128
  Single precision floating point capability
    Denorms:                     No
    Quiet NaNs:                  Yes
    Round to nearest even:           Yes
    Round to zero:               Yes
    Round to +ve and infinity:           Yes
    IEEE754-2008 fused multiply-add:         Yes
  Cache type:                    Read/Write
  Cache line size:               64
  Cache size:                    16384
  Global memory size:                1906311168
  Constant buffer size:              65536
  Max number of constant args:           8
  Local memory type:                 Scratchpad
  Local memory size:                 32768
  Max pipe arguments:                0
  Max pipe active reservations:          0
  Max pipe packet size:              0
  Max global variable size:          0
  Max global variable preferred total size:  0
  Max read/write image args:             0
  Max on device events:              0
  Queue on device max size:          0
  Max on device queues:              0
  Queue on device preferred size:        0
  SVM capabilities:              
    Coarse grain buffer:             No
    Fine grain buffer:               No
    Fine grain system:               No
    Atomics:                     No
  Preferred platform atomic alignment:       0
  Preferred global atomic alignment:         0
  Preferred local atomic alignment:      0
  Kernel Preferred work group size multiple:     64
  Error correction support:          0
  Unified memory for Host and Device:        0
  Profiling timer resolution:            1
  Device endianess:              Little
  Available:                     Yes
  Compiler available:                Yes
  Execution capabilities:                
    Execute OpenCL kernels:          Yes
    Execute native function:             No
  Queue on Host properties:              
    Out-of-Order:                No
    Profiling :                  Yes
  Queue on Device properties:                
    Out-of-Order:                No
    Profiling :                  No
  Platform ID:                   0x7f29e9b258f0
  Name:                      Hainan
  Vendor:                    Advanced Micro Devices, Inc.
  Device OpenCL C version:           OpenCL C 1.2 
  Driver version:                1729.3 (VM)
  Profile:                   FULL_PROFILE
  Version:                   OpenCL 1.2 AMD-APP (1729.3)
  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_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_gl_event 

  Device Type:                   CL_DEVICE_TYPE_CPU
  Vendor ID:                     1002h
  Board name:                    
  Max compute units:                 4
  Max work items dimensions:             3
    Max work items[0]:               1024
    Max work items[1]:               1024
    Max work items[2]:               1024
  Max work group size:               1024
  Preferred vector width char:           16
  Preferred vector width short:          8
  Preferred vector width int:            4
  Preferred vector width long:           2
  Preferred vector width float:          8
  Preferred vector width double:         4
  Native vector width char:          16
  Native vector width short:             8
  Native vector width int:           4
  Native vector width long:          2
  Native vector width float:             8
  Native vector width double:            4
  Max clock frequency:               1100Mhz
  Address bits:                  64
  Max memory allocation:             2920037376
  Image support:                 Yes
  Max number of images read arguments:       128
  Max number of images write arguments:      64
  Max image 2D width:                8192
  Max image 2D height:               8192
  Max image 3D width:                2048
  Max image 3D height:               2048
  Max image 3D depth:                2048
  Max samplers within kernel:            16
  Max size of kernel argument:           4096
  Alignment (bits) of base address:      1024
  Minimum alignment (bytes) for any datatype:    128
  Single precision floating point capability
    Denorms:                     Yes
    Quiet NaNs:                  Yes
    Round to nearest even:           Yes
    Round to zero:               Yes
    Round to +ve and infinity:           Yes
    IEEE754-2008 fused multiply-add:         Yes
  Cache type:                    Read/Write
  Cache line size:               64
  Cache size:                    16384
  Global memory size:                11680149504
  Constant buffer size:              65536
  Max number of constant args:           8
  Local memory type:                 Global
  Local memory size:                 32768
  Max pipe arguments:                16
  Max pipe active reservations:          16
  Max pipe packet size:              2920037376
  Max global variable size:          1879048192
  Max global variable preferred total size:  1879048192
  Max read/write image args:             64
  Max on device events:              0
  Queue on device max size:          0
  Max on device queues:              0
  Queue on device preferred size:        0
  SVM capabilities:              
    Coarse grain buffer:             No
    Fine grain buffer:               No
    Fine grain system:               No
    Atomics:                     No
  Preferred platform atomic alignment:       0
  Preferred global atomic alignment:         0
  Preferred local atomic alignment:      0
  Kernel Preferred work group size multiple:     1
  Error correction support:          0
  Unified memory for Host and Device:        1
  Profiling timer resolution:            1
  Device endianess:              Little
  Available:                     Yes
  Compiler available:                Yes
  Execution capabilities:                
    Execute OpenCL kernels:          Yes
    Execute native function:             Yes
  Queue on Host properties:              
    Out-of-Order:                No
    Profiling :                  Yes
  Queue on Device properties:                
    Out-of-Order:                No
    Profiling :                  No
  Platform ID:                   0x7f29e9b258f0
  Name:                      AMD A10-5745M APU with Radeon(tm) HD Graphics
  Vendor:                    AuthenticAMD
  Device OpenCL C version:           OpenCL C 1.2 
  Driver version:                1729.3 (sse2,avx,fma4)
  Profile:                   FULL_PROFILE
  Version:                   OpenCL 1.2 AMD-APP (1729.3)
  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 

Other hardware:

lspci output:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Root Complex
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Richland [Radeon HD 8610G]
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Trinity HDMI Audio Controller
00:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Root Port
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Root Port
00:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Root Port
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 09)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode]
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 16)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] FCH PCI Bridge (rev 40)
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 0)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 5
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M]
02:00.0 Network controller: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe
02:00.1 Bluetooth: Ralink corp. RT3290 Bluetooth
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 07)
05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)

cltorch.about:

th -l cltorch -e 'cltorch.about()' output:

cltorch.  OpenCL backend for Torch
Built from commit c98f978
More info, doc: https://github.com/hughperkins/cltorch
Issues: https://github.com/hughperkins/cltorch/issues

Unit tests log:

running tests...
aftter requiring cltorch.unit_storage
Running 2 tests
__

|_  ==> test_basic
Using Advanced Micro Devices, Inc. , OpenCL platform: AMD Accelerated Parallel Processing
Using OpenCL device: Hainan

_|  ==> test_get

__  ==> Done 

Completed 15 asserts in 2 tests with 0 errors

--------------------------------------------------------------------------------
#tester.errors  0
res true
aftter requiring cltorch.unit_tensor
Running 116 tests
____________________________________________________________________________________________________________________

|___________________________________________________________________________________________________________________  ==> inplace_abs

_|__________________________________________________________________________________________________________________  ==> inplace_acos

__|_________________________________________________________________________________________________________________  ==> inplace_add

___|________________________________________________________________________________________________________________  ==> inplace_asin

____|_______________________________________________________________________________________________________________  ==> inplace_atan

_____|______________________________________________________________________________________________________________  ==> inplace_atan2

______|_____________________________________________________________________________________________________________  ==> inplace_cdiv

_______|____________________________________________________________________________________________________________  ==> inplace_ceil

________|___________________________________________________________________________________________________________  ==> inplace_cinv

________*|__________________________________________________________________________________________________________  ==> inplace_cmul

________*_|_________________________________________________________________________________________________________  ==> inplace_cos

________*__|________________________________________________________________________________________________________  ==> inplace_cpow

________*___|_______________________________________________________________________________________________________  ==> inplace_eq

________*____|______________________________________________________________________________________________________  ==> inplace_exp

________*_____|_____________________________________________________________________________________________________  ==> inplace_floor

________*______|____________________________________________________________________________________________________  ==> inplace_ge

________*_______|___________________________________________________________________________________________________  ==> inplace_gt

________*________|__________________________________________________________________________________________________  ==> inplace_le

________*_________|_________________________________________________________________________________________________  ==> inplace_log

________*__________|________________________________________________________________________________________________  ==> inplace_lt

________*___________|_______________________________________________________________________________________________  ==> inplace_ne

________*____________|______________________________________________________________________________________________  ==> inplace_round

________*_____________|_____________________________________________________________________________________________  ==> inplace_sigmoid

________*_____________*|____________________________________________________________________________________________  ==> inplace_sign

________*_____________*_|___________________________________________________________________________________________  ==> inplace_sin

________*_____________*__|__________________________________________________________________________________________  ==> inplace_sqrt

________*_____________*___|_________________________________________________________________________________________  ==> inplace_tanh

________*_____________*____|________________________________________________________________________________________  ==> operator_div_scalar

________*_____________*_____|_______________________________________________________________________________________  ==> operator_mul_scalar

________*_____________*______|______________________________________________________________________________________  ==> operator_plus

________*_____________*_______|_____________________________________________________________________________________  ==> operator_plus_scalar

________*_____________*________|____________________________________________________________________________________  ==> operator_sub

________*_____________*_________|___________________________________________________________________________________  ==> operator_sub_scalar

________*_____________*__________|__________________________________________________________________________________  ==> outplace_abs

________*_____________*___________|_________________________________________________________________________________  ==> outplace_acos

________*_____________*____________|________________________________________________________________________________  ==> outplace_add

________*_____________*_____________|_______________________________________________________________________________  ==> outplace_asin

________*_____________*______________|______________________________________________________________________________  ==> outplace_atan

________*_____________*_______________|_____________________________________________________________________________  ==> outplace_cdiv

________*_____________*________________|____________________________________________________________________________  ==> outplace_ceil

________*_____________*_________________|___________________________________________________________________________  ==> outplace_cinv

________*_____________*_________________*|__________________________________________________________________________  ==> outplace_cmul

________*_____________*_________________*_|_________________________________________________________________________  ==> outplace_cos

________*_____________*_________________*__|________________________________________________________________________  ==> outplace_cpow

________*_____________*_________________*___|_______________________________________________________________________  ==> outplace_div

________*_____________*_________________*____|______________________________________________________________________  ==> outplace_eq

________*_____________*_________________*_____|_____________________________________________________________________  ==> outplace_exp

________*_____________*_________________*______|____________________________________________________________________  ==> outplace_floor

________*_____________*_________________*_______|___________________________________________________________________  ==> outplace_ge

________*_____________*_________________*________|__________________________________________________________________  ==> outplace_gt

________*_____________*_________________*_________|_________________________________________________________________  ==> outplace_le

________*_____________*_________________*__________|________________________________________________________________  ==> outplace_log

________*_____________*_________________*___________|_______________________________________________________________  ==> outplace_lt

________*_____________*_________________*____________|______________________________________________________________  ==> outplace_mul

________*_____________*_________________*_____________|_____________________________________________________________  ==> outplace_ne

________*_____________*_________________*______________|____________________________________________________________  ==> outplace_pow

________*_____________*_________________*_______________|___________________________________________________________  ==> outplace_round

________*_____________*_________________*________________|__________________________________________________________  ==> outplace_sigmoid

________*_____________*_________________*________________*|_________________________________________________________  ==> outplace_sign

________*_____________*_________________*________________*_|________________________________________________________  ==> outplace_sin

________*_____________*_________________*________________*__|_______________________________________________________  ==> outplace_sqrt

________*_____________*_________________*________________*___|______________________________________________________  ==> outplace_tanh

________*_____________*_________________*________________*____|_____________________________________________________  ==> self_eq

________*_____________*_________________*________________*_____|____________________________________________________  ==> self_ge

________*_____________*_________________*________________*______|___________________________________________________  ==> self_gt

________*_____________*_________________*________________*_______|__________________________________________________  ==> self_le

________*_____________*_________________*________________*________|_________________________________________________  ==> self_lt

________*_____________*_________________*________________*_________|________________________________________________  ==> self_ne

________*_____________*_________________*________________*__________|_______________________________________________  ==> test_add

________*_____________*_________________*________________*___________|______________________________________________  ==> test_addcdiv

________*_____________*_________________*________________*____________|_____________________________________________  ==> test_addcdivshape

________*_____________*_________________*________________*_____________|____________________________________________  ==> test_addcmul

________*_____________*_________________*________________*______________|___________________________________________  ==> test_apply

________*_____________*_________________*________________*_______________|__________________________________________  ==> test_basic

________*_____________*_________________*________________*________________|_________________________________________  ==> test_blas

________*_____________*_________________*________________*_________________|________________________________________  ==> test_clone

________*_____________*_________________*________________*__________________|_______________________________________  ==> test_cmin

________*_____________*_________________*________________*___________________|______________________________________  ==> test_cmul

________*_____________*_________________*________________*____________________|_____________________________________  ==> test_cumprod

________*_____________*_________________*________________*_____________________|____________________________________  ==> test_cumsum

________*_____________*_________________*________________*______________________|___________________________________  ==> test_equals
left
     3.0000  5.0000 -2.0000
 2.1000  2.2000  3.9000
[torch.FloatTensor of size 2x3]

right
     3.0000  5.0000 -2.0000
 2.1000  2.4000  3.9000
[torch.FloatTensor of size 2x3]

left
     3.0000  5.0000 -2.0000
 2.1000  2.2000  3.9000
[torch.DoubleTensor of size 2x3]

right
     3.0000  5.0000 -2.0000
 2.1000  2.4000  3.9000
[torch.DoubleTensor of size 2x3]

________*_____________*_________________*________________*_______________________|__________________________________  ==> test_fills

________*_____________*_________________*________________*________________________|_________________________________  ==> test_gather

________*_____________*_________________*________________*_________________________|________________________________  ==> test_gather_narrowed
new wrapper, size 4
new wrapper, size 4

________*_____________*_________________*________________*__________________________|_______________________________  ==> test_gather_t

________*_____________*_________________*________________*___________________________|______________________________  ==> test_get

________*_____________*_________________*________________*____________________________|_____________________________  ==> test_indexcopy

________*_____________*_________________*________________*_____________________________|____________________________  ==> test_indexfill

________*_____________*_________________*________________*______________________________|___________________________  ==> test_indexselect

________*_____________*_________________*________________*_______________________________|__________________________  ==> test_intpower

________*_____________*_________________*________________*________________________________|_________________________  ==> test_map

________*_____________*_________________*________________*_________________________________|________________________  ==> test_map2

________*_____________*_________________*________________*__________________________________|_______________________  ==> test_matrixwide

________*_____________*_________________*________________*___________________________________|______________________  ==> test_max1

________*_____________*_________________*________________*____________________________________|_____________________  ==> test_max2

________*_____________*_________________*________________*_____________________________________|____________________  ==> test_mean

________*_____________*_________________*________________*______________________________________|___________________  ==> test_meanall
THClReduceAll.cl build log: 
"/tmp/OCL7142T283.cl", line 9: warning: variable "in1" was declared but never
          referenced
    float *in1 = &_in1;
           ^

"/tmp/OCL7142T283.cl", line 10: warning: variable "out" was declared but never
          referenced
    float *out = &_out;
           ^

________*_____________*_________________*________________*_______________________________________|__________________  ==> test_min1

________*_____________*_________________*________________*________________________________________|_________________  ==> test_min2

________*_____________*_________________*________________*_________________________________________|________________  ==> test_neg

________*_____________*_________________*________________*__________________________________________|_______________  ==> test_norm

________*_____________*_________________*________________*___________________________________________|______________  ==> test_perelement

________*_____________*_________________*________________*____________________________________________|_____________  ==> test_powerofneg

________*_____________*_________________*________________*_____________________________________________|____________  ==> test_prod

________*_____________*_________________*________________*______________________________________________|___________  ==> test_prodall
THClReduceAll.cl build log: 
"/tmp/OCL7142T328.cl", line 9: warning: variable "in1" was declared but never
          referenced
    float *in1 = &_in1;
           ^

"/tmp/OCL7142T328.cl", line 10: warning: variable "out" was declared but never
          referenced
    float *out = &_out;
           ^

________*_____________*_________________*________________*_______________________________________________|__________  ==> test_reduceAll

________*_____________*_________________*________________*________________________________________________|_________  ==> test_reshape

________*_____________*_________________*________________*_________________________________________________|________  ==> test_save

________*_____________*_________________*________________*__________________________________________________|_______  ==> test_scatter

________*_____________*_________________*________________*___________________________________________________|______  ==> test_scatterFill

________*_____________*_________________*________________*____________________________________________________|_____  ==> test_sub

________*_____________*_________________*________________*_____________________________________________________|____  ==> test_sum

________*_____________*_________________*________________*______________________________________________________|___  ==> test_sum_t

________*_____________*_________________*________________*_______________________________________________________|__  ==> test_sum_t_offset

________*_____________*_________________*________________*________________________________________________________|_  ==> test_sumall

________*_____________*_________________*________________*_________________________________________________________|  ==> test_sumallt

________*_____________*_________________*________________*__________________________________________________________  ==> Done 

Completed 219 asserts in 116 tests with 4 errors

--------------------------------------------------------------------------------
inplace_cinv
 Function call failed 
[string "a:cinv()"]:1: attempt to call method 'cinv' (a nil value)
stack traceback:
    [string "a:cinv()"]:1: in main chunk
    ...tter/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:244: in function 'v'
    ...tter/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:1029: in function <...tter/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:1027>
    [C]: in function 'xpcall'
    /home/otter/torch/install/share/lua/5.1/torch/Tester.lua:115: in function 'pcall'
    /home/otter/torch/install/share/lua/5.1/torch/Tester.lua:186: in function '_run'
    /home/otter/torch/install/share/lua/5.1/torch/Tester.lua:161: in function 'run'
    ...tter/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:1039: in function 'test'
    /home/otter/torch/install/share/lua/5.1/cltorch/Test.lua:15: in function 'test'
    (command line):1: in main chunk
    [C]: at 0x00406670

--------------------------------------------------------------------------------
inplace_sigmoid
 Function call failed 
[string "a:sigmoid()"]:1: attempt to call method 'sigmoid' (a nil value)
stack traceback:
    [string "a:sigmoid()"]:1: in main chunk
    ...tter/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:244: in function 'v'
    ...tter/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:1029: in function <...tter/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:1027>
    [C]: in function 'xpcall'
    /home/otter/torch/install/share/lua/5.1/torch/Tester.lua:115: in function 'pcall'
    /home/otter/torch/install/share/lua/5.1/torch/Tester.lua:186: in function '_run'
    /home/otter/torch/install/share/lua/5.1/torch/Tester.lua:161: in function 'run'
    ...tter/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:1039: in function 'test'
    /home/otter/torch/install/share/lua/5.1/cltorch/Test.lua:15: in function 'test'
    (command line):1: in main chunk
    [C]: at 0x00406670

--------------------------------------------------------------------------------
outplace_cinv
 Function call failed 
[string "res_cpu = torch.cinv(c)"]:1: attempt to call field 'cinv' (a nil value)
stack traceback:
    [string "res_cpu = torch.cinv(c)"]:1: in main chunk
    ...tter/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:257: in function 'v'
    ...tter/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:1029: in function <...tter/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:1027>
    [C]: in function 'xpcall'
    /home/otter/torch/install/share/lua/5.1/torch/Tester.lua:115: in function 'pcall'
    /home/otter/torch/install/share/lua/5.1/torch/Tester.lua:186: in function '_run'
    /home/otter/torch/install/share/lua/5.1/torch/Tester.lua:161: in function 'run'
    ...tter/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:1039: in function 'test'
    /home/otter/torch/install/share/lua/5.1/cltorch/Test.lua:15: in function 'test'
    (command line):1: in main chunk
    [C]: at 0x00406670

--------------------------------------------------------------------------------
outplace_sigmoid
 Function call failed 
[string "res_cpu = torch.sigmoid(c)"]:1: attempt to call field 'sigmoid' (a nil value)
stack traceback:
    [string "res_cpu = torch.sigmoid(c)"]:1: in main chunk
    ...tter/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:257: in function 'v'
    ...tter/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:1029: in function <...tter/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:1027>
    [C]: in function 'xpcall'
    /home/otter/torch/install/share/lua/5.1/torch/Tester.lua:115: in function 'pcall'
    /home/otter/torch/install/share/lua/5.1/torch/Tester.lua:186: in function '_run'
    /home/otter/torch/install/share/lua/5.1/torch/Tester.lua:161: in function 'run'
    ...tter/torch/install/share/lua/5.1/cltorch/unit_tensor.lua:1039: in function 'test'
    /home/otter/torch/install/share/lua/5.1/cltorch/Test.lua:15: in function 'test'
    (command line):1: in main chunk
    [C]: at 0x00406670

--------------------------------------------------------------------------------
hughperkins commented 8 years ago

Ok. There is a mismatch between your 'nn' and 'clnn' versoins. Pleae do the following, and then retry:

luarocks install nn
luarocks install clnn
alexsosn commented 8 years ago

Okay, seems like it doesn't help, still got 'Completed 219 asserts in 116 tests with 4 errors'. Here is the output of test() out.txt about() output remains the same.

hughperkins commented 8 years ago

Sorry, right, please do instead:

luarocks install torch
luarocks install cltorch
alexsosn commented 8 years ago

Cool, it works now! Completed 227 asserts in 116 tests with 0 errors Just tested neural-style, also works. Thank you @hughperkins.

hughperkins commented 8 years ago

Ok, cool :-)