Skip to content

error: identifier "WARP_SHFL_XOR" is undefined #487

@Quasimondo

Description

@Quasimondo

When trying luarocks install cunn I the compilation fails with

/tmp/luarocks_cunn-scm-1-5502/cunn/lib/THCUNN/BatchNormalization.cu(83): error: identifier "WARP_SHFL_XOR" is undefined
          detected during:
            instantiation of "T warpSum(T) [with T=float]" 
(115): here
            instantiation of "T reduce<T,Op,DeviceTensor3>(Op, DeviceTensor3, int) [with T=float, Op=SumOp<half, float, THCDeviceTensor<half, 3, int, DefaultPtrTraits>>, DeviceTensor3=THCDeviceTensor<half, 3, int, DefaultPtrTraits>]" 
(185): here
            instantiation of "void BatchNormalizationUpdateOutput_kernel<Dtype,Acctype,DeviceTensor1,DeviceTensor3>(DeviceTensor3, DeviceTensor3, DeviceTensor1, DeviceTensor1, Acctype, Acctype, DeviceTensor1, DeviceTensor1, DeviceTensor1, DeviceTensor1) [with Dtype=half, Acctype=float, DeviceTensor1=THCDeviceTensor<half, 1, int, DefaultPtrTraits>, DeviceTensor3=THCDeviceTensor<half, 3, int, DefaultPtrTraits>]" 
/tmp/luarocks_cunn-scm-1-5502/cunn/lib/THCUNN/generic/BatchNormalization.cu(61): here

The fix is to upgrade cutorch to the latest version: luarocks install cutorch - maybe you could mention that in the README.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions