Repository: pytorch
Issue: Fails to build on ppc64le with clang
Labels: module: cpu,triaged,module: vectorization

### 🐛 Describe the bug

FreeBSD 13.1-RELEASE / powerpc64le with LLVM 13 (same error with LLVM 14 and 15):
```
/usr/bin/c++ -DAT_PER_OPERATOR_HEADERS -DCPUINFO_SUPPORTED_PLATFORM=0 -DFMT_HEADER_ONLY=1 -DHAVE_MALLOC_USABLE_SIZE=1 -DHAVE_MMAP=1 -DHAVE_SHM_OPEN=1 -DHAVE_SHM_UNLINK=1 -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx -DUSE_EXTERNAL_MZCRC -D_FILE_OFFSET_BITS=64 -Dtorch_cpu_EXPORTS -I/wrkdirs/usr/ports/misc/pytorch/work/.build/aten/src -I/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src -I/wrkdirs/usr/ports/misc/pytorch/work/.build -I/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1 -I/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/foxi -I/wrkdirs/usr/ports/misc/pytorch/work/.build/third_party/foxi -I/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/torch/csrc/api -I/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/torch/csrc/api/include -I/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/caffe2/aten/src/TH -I/wrkdirs/usr/ports/misc/pytorch/work/.build/caffe2/aten/src/TH -I/wrkdirs/usr/ports/misc/pytorch/work/.build/caffe2/aten/src -I/wrkdirs/usr/ports/misc/pytorch/work/.build/caffe2/../aten/src -I/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/torch/csrc -I/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/miniz-2.1.0 -I/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/kineto/libkineto/include -I/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/kineto/libkineto/src -I/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/../third_party/catch/single_include -I/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/.. -I/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/c10/.. -I/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/cpuinfo/include -I/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/FP16/include -I/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/fmt/include -I/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/flatbuffers/include -isystem /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/cmake/../third_party/eigen -isystem /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/caffe2 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include -Wno-deprecated -fvisibility-inlines-hidden -fopenmp=libomp -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOCUPTI -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -DEDGE_PROFILER_USE_KINETO -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wunused-local-typedefs -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wvla-extension -Wno-range-loop-analysis -Wno-pass-failed -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -Wconstant-conversion -Wno-invalid-partial-specialization -Wno-typedef-redefinition -Wno-unused-private-field -Wno-inconsistent-missing-override -Wno-c++14-extensions -Wno-constexpr-not-const -Wno-missing-braces -Wunused-lambda-capture -Wunused-local-typedef -Qunused-arguments -fcolor-diagnostics -fdiagnostics-color=always -Wno-unused-but-set-variable -fno-math-errno -fno-trapping-math -Werror=format -Werror=cast-function-type -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include  -DNDEBUG -DNDEBUG -fPIC -DTH_HAVE_THREAD -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-missing-field-initializers -Wno-write-strings -Wno-unknown-pragmas -Wno-type-limits -Wno-array-bounds -Wno-sign-compare -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-missing-braces -Wno-range-loop-analysis -fvisibility=hidden -O2 -fopenmp=libomp -DCAFFE2_BUILD_MAIN_LIB -pthread -std=gnu++14 -MD -MT caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/native/Col2Im.cpp.o -MF caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/native/Col2Im.cpp.o.d -o caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/native/Col2Im.cpp.o -c /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/Col2Im.cpp
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/Col2Im.cpp:6:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/im2col.h:7:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/cpu/utils.h:3:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec.h:6:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256.h:19:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vec256_common_vsx.h:5:
/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vsx_helpers.h:57:10: error: excess elements in scalar initializer
  vint16 vint0 = {0, 0, 0, 0 ,0, 0, 0, 0};
         ^         ~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vsx_helpers.h:58:10: error: no matching function for call to 'vec_vsubuhm'
  return vec_vsubuhm(vint0, vec_in);
         ^~~~~~~~~~~
/usr/lib/clang/13.0.0/include/altivec.h:11949:45: note: candidate function not viable: no known conversion from 'vint16' (aka 'short') to '__vector short' (vector of 8 'short' values) for 1st argument
static __inline__ vector short __ATTRS_o_ai vec_vsubuhm(vector short __a,
                                            ^
/usr/lib/clang/13.0.0/include/altivec.h:11954:45: note: candidate function not viable: no known conversion from 'vint16' (aka 'short') to '__vector __bool unsigned short' (vector of 8 'unsigned short' values) for 1st argument
static __inline__ vector short __ATTRS_o_ai vec_vsubuhm(vector bool short __a,
                                            ^
/usr/lib/clang/13.0.0/include/altivec.h:11959:45: note: candidate function not viable: no known conversion from 'vint16' (aka 'short') to '__vector short' (vector of 8 'short' values) for 1st argument
static __inline__ vector short __ATTRS_o_ai vec_vsubuhm(vector short __a,
                                            ^
/usr/lib/clang/13.0.0/include/altivec.h:11965:1: note: candidate function not viable: no known conversion from 'vint16' (aka 'short') to '__vector unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_vsubuhm(vector unsigned short __a, vector unsigned short __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:11970:1: note: candidate function not viable: no known conversion from 'vint16' (aka 'short') to '__vector __bool unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_vsubuhm(vector bool short __a, vector unsigned short __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:11975:1: note: candidate function not viable: no known conversion from 'vint16' (aka 'short') to '__vector unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_vsubuhm(vector unsigned short __a, vector bool short __b) {
^
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/Col2Im.cpp:6:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/im2col.h:7:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/cpu/utils.h:3:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec.h:6:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256.h:19:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vec256_common_vsx.h:5:
/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vsx_helpers.h:62:10: error: excess elements in scalar initializer
  vint32 vint0 = {0, 0, 0, 0};
         ^         ~~~~~~~~~~
/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vsx_helpers.h:63:10: error: no matching function for call to 'vec_vsubuwm'
  return vec_vsubuwm(vint0, vec_in);
         ^~~~~~~~~~~
/usr/lib/clang/13.0.0/include/altivec.h:11983:43: note: candidate function not viable: no known conversion from 'vint32' (aka 'int') to '__vector int' (vector of 4 'int' values) for 1st argument
static __inline__ vector int __ATTRS_o_ai vec_vsubuwm(vector int __a,
                                          ^
/usr/lib/clang/13.0.0/include/altivec.h:11988:43: note: candidate function not viable: no known conversion from 'vint32' (aka 'int') to '__vector __bool unsigned int' (vector of 4 'unsigned int' values) for 1st argument
static __inline__ vector int __ATTRS_o_ai vec_vsubuwm(vector bool int __a,
                                          ^
/usr/lib/clang/13.0.0/include/altivec.h:11993:43: note: candidate function not viable: no known conversion from 'vint32' (aka 'int') to '__vector int' (vector of 4 'int' values) for 1st argument
static __inline__ vector int __ATTRS_o_ai vec_vsubuwm(vector int __a,
                                          ^
/usr/lib/clang/13.0.0/include/altivec.h:11999:1: note: candidate function not viable: no known conversion from 'vint32' (aka 'int') to '__vector unsigned int' (vector of 4 'unsigned int' values) for 1st argument
vec_vsubuwm(vector unsigned int __a, vector unsigned int __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:12004:1: note: candidate function not viable: no known conversion from 'vint32' (aka 'int') to '__vector __bool unsigned int' (vector of 4 'unsigned int' values) for 1st argument
vec_vsubuwm(vector bool int __a, vector unsigned int __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:12009:1: note: candidate function not viable: no known conversion from 'vint32' (aka 'int') to '__vector unsigned int' (vector of 4 'unsigned int' values) for 1st argument
vec_vsubuwm(vector unsigned int __a, vector bool int __b) {
^
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/Col2Im.cpp:6:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/im2col.h:7:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/cpu/utils.h:3:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec.h:6:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256.h:19:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vec256_common_vsx.h:5:
/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vsx_helpers.h:67:10: error: excess elements in scalar initializer
  vint64 vint0 = {0, 0};
         ^         ~~~~
/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vsx_helpers.h:68:10: error: use of undeclared identifier 'vec_vsubudm'
  return vec_vsubudm(vint0, vec_in);
         ^
/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vsx_helpers.h:144:57: error: no matching function for call to 'vec_min'
C10_VSX_VEC_NAN_PROPAG(vec_min_nan2, vfloat32, vbool32, vec_min)
                                                        ^~~~~~~
/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vsx_helpers.h:137:16: note: expanded from macro 'C10_VSX_VEC_NAN_PROPAG'
    type tmp = func(a, b);                                    \
               ^~~~
/usr/lib/clang/13.0.0/include/altivec.h:5690:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector signed char' (vector of 16 'signed char' values) for 1st argument
vec_min(vector signed char __a, vector signed char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:5695:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned char' (vector of 16 'unsigned char' values) for 1st argument
vec_min(vector bool char __a, vector signed char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:5700:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector signed char' (vector of 16 'signed char' values) for 1st argument
vec_min(vector signed char __a, vector bool char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:5705:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned char' (vector of 16 'unsigned char' values) for 1st argument
vec_min(vector unsigned char __a, vector unsigned char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:5710:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned char' (vector of 16 'unsigned char' values) for 1st argument
vec_min(vector bool char __a, vector unsigned char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:5715:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned char' (vector of 16 'unsigned char' values) for 1st argument
vec_min(vector unsigned char __a, vector bool char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:5719:45: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector short' (vector of 8 'short' values) for 1st argument
static __inline__ vector short __ATTRS_o_ai vec_min(vector short __a,
                                            ^
/usr/lib/clang/13.0.0/include/altivec.h:5724:45: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned short' (vector of 8 'unsigned short' values) for 1st argument
static __inline__ vector short __ATTRS_o_ai vec_min(vector bool short __a,
                                            ^
/usr/lib/clang/13.0.0/include/altivec.h:5729:45: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector short' (vector of 8 'short' values) for 1st argument
static __inline__ vector short __ATTRS_o_ai vec_min(vector short __a,
                                            ^
/usr/lib/clang/13.0.0/include/altivec.h:5735:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_min(vector unsigned short __a, vector unsigned short __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:5740:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_min(vector bool short __a, vector unsigned short __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:5745:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_min(vector unsigned short __a, vector bool short __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:5749:43: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector int' (vector of 4 'int' values) for 1st argument
static __inline__ vector int __ATTRS_o_ai vec_min(vector int __a,
                                          ^
/usr/lib/clang/13.0.0/include/altivec.h:5754:43: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned int' (vector of 4 'unsigned int' values) for 1st argument
static __inline__ vector int __ATTRS_o_ai vec_min(vector bool int __a,
                                          ^
/usr/lib/clang/13.0.0/include/altivec.h:5759:43: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector int' (vector of 4 'int' values) for 1st argument
static __inline__ vector int __ATTRS_o_ai vec_min(vector int __a,
                                          ^
/usr/lib/clang/13.0.0/include/altivec.h:5765:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned int' (vector of 4 'unsigned int' values) for 1st argument
vec_min(vector unsigned int __a, vector unsigned int __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:5770:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned int' (vector of 4 'unsigned int' values) for 1st argument
vec_min(vector bool int __a, vector unsigned int __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:5775:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned int' (vector of 4 'unsigned int' values) for 1st argument
vec_min(vector unsigned int __a, vector bool int __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:5781:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector long long' (vector of 2 'long long' values) for 1st argument
vec_min(vector signed long long __a, vector signed long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:5786:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_min(vector bool long long __a, vector signed long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:5791:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector long long' (vector of 2 'long long' values) for 1st argument
vec_min(vector signed long long __a, vector bool long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:5796:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_min(vector unsigned long long __a, vector unsigned long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:5801:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_min(vector bool long long __a, vector unsigned long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:5806:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_min(vector unsigned long long __a, vector bool long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:5811:45: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector float' (vector of 4 'float' values) for 1st argument
static __inline__ vector float __ATTRS_o_ai vec_min(vector float __a,
                                            ^
/usr/lib/clang/13.0.0/include/altivec.h:5821:46: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector double' (vector of 2 'double' values) for 1st argument
static __inline__ vector double __ATTRS_o_ai vec_min(vector double __a,
                                             ^
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/Col2Im.cpp:6:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/im2col.h:7:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/cpu/utils.h:3:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec.h:6:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256.h:19:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vec256_common_vsx.h:5:
/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vsx_helpers.h:144:1: error: no matching function for call to 'vec_cmpne'
C10_VSX_VEC_NAN_PROPAG(vec_min_nan2, vfloat32, vbool32, vec_min)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vsx_helpers.h:138:19: note: expanded from macro 'C10_VSX_VEC_NAN_PROPAG'
    btype nan_a = vec_cmpne(a, a);                            \
                  ^~~~~~~~~
/usr/lib/clang/13.0.0/include/altivec.h:2002:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned char' (vector of 16 'unsigned char' values) for 1st argument
vec_cmpne(vector bool char __a, vector bool char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2007:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector signed char' (vector of 16 'signed char' values) for 1st argument
vec_cmpne(vector signed char __a, vector signed char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2012:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned char' (vector of 16 'unsigned char' values) for 1st argument
vec_cmpne(vector unsigned char __a, vector unsigned char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2017:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_cmpne(vector bool short __a, vector bool short __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2022:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector short' (vector of 8 'short' values) for 1st argument
vec_cmpne(vector signed short __a, vector signed short __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2027:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_cmpne(vector unsigned short __a, vector unsigned short __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2032:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned int' (vector of 4 'unsigned int' values) for 1st argument
vec_cmpne(vector bool int __a, vector bool int __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2037:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector int' (vector of 4 'int' values) for 1st argument
vec_cmpne(vector signed int __a, vector signed int __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2042:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned int' (vector of 4 'unsigned int' values) for 1st argument
vec_cmpne(vector unsigned int __a, vector unsigned int __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2047:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector float' (vector of 4 'float' values) for 1st argument
vec_cmpne(vector float __a, vector float __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2054:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_cmpne(vector bool long long __a, vector bool long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2060:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector long long' (vector of 2 'long long' values) for 1st argument
vec_cmpne(vector signed long long __a, vector signed long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2066:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_cmpne(vector unsigned long long __a, vector unsigned long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2092:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector double' (vector of 2 'double' values) for 1st argument
vec_cmpne(vector double __a, vector double __b) {
^
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/Col2Im.cpp:6:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/im2col.h:7:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/cpu/utils.h:3:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec.h:6:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256.h:19:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vec256_common_vsx.h:5:
/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vsx_helpers.h:144:1: error: no matching function for call to 'vec_cmpne'
C10_VSX_VEC_NAN_PROPAG(vec_min_nan2, vfloat32, vbool32, vec_min)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vsx_helpers.h:139:19: note: expanded from macro 'C10_VSX_VEC_NAN_PROPAG'
    btype nan_b = vec_cmpne(b, b);                            \
                  ^~~~~~~~~
/usr/lib/clang/13.0.0/include/altivec.h:2002:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned char' (vector of 16 'unsigned char' values) for 1st argument
vec_cmpne(vector bool char __a, vector bool char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2007:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector signed char' (vector of 16 'signed char' values) for 1st argument
vec_cmpne(vector signed char __a, vector signed char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2012:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned char' (vector of 16 'unsigned char' values) for 1st argument
vec_cmpne(vector unsigned char __a, vector unsigned char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2017:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_cmpne(vector bool short __a, vector bool short __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2022:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector short' (vector of 8 'short' values) for 1st argument
vec_cmpne(vector signed short __a, vector signed short __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2027:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_cmpne(vector unsigned short __a, vector unsigned short __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2032:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned int' (vector of 4 'unsigned int' values) for 1st argument
vec_cmpne(vector bool int __a, vector bool int __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2037:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector int' (vector of 4 'int' values) for 1st argument
vec_cmpne(vector signed int __a, vector signed int __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2042:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned int' (vector of 4 'unsigned int' values) for 1st argument
vec_cmpne(vector unsigned int __a, vector unsigned int __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2047:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector float' (vector of 4 'float' values) for 1st argument
vec_cmpne(vector float __a, vector float __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2054:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_cmpne(vector bool long long __a, vector bool long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2060:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector long long' (vector of 2 'long long' values) for 1st argument
vec_cmpne(vector signed long long __a, vector signed long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2066:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_cmpne(vector unsigned long long __a, vector unsigned long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2092:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector double' (vector of 2 'double' values) for 1st argument
vec_cmpne(vector double __a, vector double __b) {
^
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/Col2Im.cpp:6:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/im2col.h:7:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/cpu/utils.h:3:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec.h:6:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256.h:19:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vec256_common_vsx.h:5:
/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vsx_helpers.h:144:1: error: no matching function for call to 'vec_sel'
C10_VSX_VEC_NAN_PROPAG(vec_min_nan2, vfloat32, vbool32, vec_min)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vsx_helpers.h:140:11: note: expanded from macro 'C10_VSX_VEC_NAN_PROPAG'
    tmp = vec_sel(tmp, a, nan_a);                             \
          ^~~~~~~
/usr/lib/clang/13.0.0/include/altivec.h:8505:51: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector signed char' (vector of 16 'signed char' values) for 1st argument
static __inline__ vector signed char __ATTRS_o_ai vec_sel(
                                                  ^
/usr/lib/clang/13.0.0/include/altivec.h:8511:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector signed char' (vector of 16 'signed char' values) for 1st argument
vec_sel(vector signed char __a, vector signed char __b, vector bool char __c) {
^
/usr/lib/clang/13.0.0/include/altivec.h:8516:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector unsigned char' (vector of 16 'unsigned char' values) for 1st argument
vec_sel(vector unsigned char __a, vector unsigned char __b,
^
/usr/lib/clang/13.0.0/include/altivec.h:8521:53: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector unsigned char' (vector of 16 'unsigned char' values) for 1st argument
static __inline__ vector unsigned char __ATTRS_o_ai vec_sel(
                                                    ^
/usr/lib/clang/13.0.0/include/altivec.h:8527:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector __bool unsigned char' (vector of 16 'unsigned char' values) for 1st argument
vec_sel(vector bool char __a, vector bool char __b, vector unsigned char __c) {
^
/usr/lib/clang/13.0.0/include/altivec.h:8531:49: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector __bool unsigned char' (vector of 16 'unsigned char' values) for 1st argument
static __inline__ vector bool char __ATTRS_o_ai vec_sel(vector bool char __a,
                                                ^
/usr/lib/clang/13.0.0/include/altivec.h:8537:45: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector short' (vector of 8 'short' values) for 1st argument
static __inline__ vector short __ATTRS_o_ai vec_sel(vector short __a,
                                            ^
/usr/lib/clang/13.0.0/include/altivec.h:8543:45: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector short' (vector of 8 'short' values) for 1st argument
static __inline__ vector short __ATTRS_o_ai vec_sel(vector short __a,
                                            ^
/usr/lib/clang/13.0.0/include/altivec.h:8550:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_sel(vector unsigned short __a, vector unsigned short __b,
^
/usr/lib/clang/13.0.0/include/altivec.h:8556:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_sel(vector unsigned short __a, vector unsigned short __b,
^
/usr/lib/clang/13.0.0/include/altivec.h:8562:50: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector __bool unsigned short' (vector of 8 'unsigned short' values) for 1st argument
static __inline__ vector bool short __ATTRS_o_ai vec_sel(
                                                 ^
/usr/lib/clang/13.0.0/include/altivec.h:8568:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector __bool unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_sel(vector bool short __a, vector bool short __b, vector bool short __c) {
^
/usr/lib/clang/13.0.0/include/altivec.h:8572:43: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector int' (vector of 4 'int' values) for 1st argument
static __inline__ vector int __ATTRS_o_ai vec_sel(vector int __a,
                                          ^
/usr/lib/clang/13.0.0/include/altivec.h:8578:43: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector int' (vector of 4 'int' values) for 1st argument
static __inline__ vector int __ATTRS_o_ai vec_sel(vector int __a,
                                          ^
/usr/lib/clang/13.0.0/include/altivec.h:8584:52: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector unsigned int' (vector of 4 'unsigned int' values) for 1st argument
static __inline__ vector unsigned int __ATTRS_o_ai vec_sel(
                                                   ^
/usr/lib/clang/13.0.0/include/altivec.h:8590:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector unsigned int' (vector of 4 'unsigned int' values) for 1st argument
vec_sel(vector unsigned int __a, vector unsigned int __b, vector bool int __c) {
^
/usr/lib/clang/13.0.0/include/altivec.h:8595:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector __bool unsigned int' (vector of 4 'unsigned int' values) for 1st argument
vec_sel(vector bool int __a, vector bool int __b, vector unsigned int __c) {
^
/usr/lib/clang/13.0.0/include/altivec.h:8599:48: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector __bool unsigned int' (vector of 4 'unsigned int' values) for 1st argument
static __inline__ vector bool int __ATTRS_o_ai vec_sel(vector bool int __a,
                                               ^
/usr/lib/clang/13.0.0/include/altivec.h:8605:45: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector float' (vector of 4 'float' values) for 1st argument
static __inline__ vector float __ATTRS_o_ai vec_sel(vector float __a,
                                            ^
/usr/lib/clang/13.0.0/include/altivec.h:8613:45: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector float' (vector of 4 'float' values) for 1st argument
static __inline__ vector float __ATTRS_o_ai vec_sel(vector float __a,
                                            ^
/usr/lib/clang/13.0.0/include/altivec.h:8623:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector double' (vector of 2 'double' values) for 1st argument
vec_sel(vector double __a, vector double __b, vector bool long long __c) {
^
/usr/lib/clang/13.0.0/include/altivec.h:8630:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector double' (vector of 2 'double' values) for 1st argument
vec_sel(vector double __a, vector double __b, vector unsigned long long __c) {
^
/usr/lib/clang/13.0.0/include/altivec.h:8637:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector __bool unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_sel(vector bool long long __a, vector bool long long __b,
^
/usr/lib/clang/13.0.0/include/altivec.h:8643:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector __bool unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_sel(vector bool long long __a, vector bool long long __b,
^
/usr/lib/clang/13.0.0/include/altivec.h:8650:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector long long' (vector of 2 'long long' values) for 1st argument
vec_sel(vector signed long long __a, vector signed long long __b,
^
/usr/lib/clang/13.0.0/include/altivec.h:8657:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector long long' (vector of 2 'long long' values) for 1st argument
vec_sel(vector signed long long __a, vector signed long long __b,
^
/usr/lib/clang/13.0.0/include/altivec.h:8664:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_sel(vector unsigned long long __a, vector unsigned long long __b,
^
/usr/lib/clang/13.0.0/include/altivec.h:8671:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_sel(vector unsigned long long __a, vector unsigned long long __b,
^
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/Col2Im.cpp:6:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/im2col.h:7:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/cpu/utils.h:3:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec.h:6:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256.h:19:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vec256_common_vsx.h:5:
/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vsx_helpers.h:144:1: error: no matching function for call to 'vec_sel'
C10_VSX_VEC_NAN_PROPAG(vec_min_nan2, vfloat32, vbool32, vec_min)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vsx_helpers.h:141:12: note: expanded from macro 'C10_VSX_VEC_NAN_PROPAG'
    return vec_sel(tmp, b, nan_b);                            \
           ^~~~~~~
/usr/lib/clang/13.0.0/include/altivec.h:8505:51: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector signed char' (vector of 16 'signed char' values) for 1st argument
static __inline__ vector signed char __ATTRS_o_ai vec_sel(
                                                  ^
/usr/lib/clang/13.0.0/include/altivec.h:8511:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector signed char' (vector of 16 'signed char' values) for 1st argument
vec_sel(vector signed char __a, vector signed char __b, vector bool char __c) {
^
/usr/lib/clang/13.0.0/include/altivec.h:8516:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector unsigned char' (vector of 16 'unsigned char' values) for 1st argument
vec_sel(vector unsigned char __a, vector unsigned char __b,
^
/usr/lib/clang/13.0.0/include/altivec.h:8521:53: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector unsigned char' (vector of 16 'unsigned char' values) for 1st argument
static __inline__ vector unsigned char __ATTRS_o_ai vec_sel(
                                                    ^
/usr/lib/clang/13.0.0/include/altivec.h:8527:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector __bool unsigned char' (vector of 16 'unsigned char' values) for 1st argument
vec_sel(vector bool char __a, vector bool char __b, vector unsigned char __c) {
^
/usr/lib/clang/13.0.0/include/altivec.h:8531:49: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector __bool unsigned char' (vector of 16 'unsigned char' values) for 1st argument
static __inline__ vector bool char __ATTRS_o_ai vec_sel(vector bool char __a,
                                                ^
/usr/lib/clang/13.0.0/include/altivec.h:8537:45: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector short' (vector of 8 'short' values) for 1st argument
static __inline__ vector short __ATTRS_o_ai vec_sel(vector short __a,
                                            ^
/usr/lib/clang/13.0.0/include/altivec.h:8543:45: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector short' (vector of 8 'short' values) for 1st argument
static __inline__ vector short __ATTRS_o_ai vec_sel(vector short __a,
                                            ^
/usr/lib/clang/13.0.0/include/altivec.h:8550:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_sel(vector unsigned short __a, vector unsigned short __b,
^
/usr/lib/clang/13.0.0/include/altivec.h:8556:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_sel(vector unsigned short __a, vector unsigned short __b,
^
/usr/lib/clang/13.0.0/include/altivec.h:8562:50: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector __bool unsigned short' (vector of 8 'unsigned short' values) for 1st argument
static __inline__ vector bool short __ATTRS_o_ai vec_sel(
                                                 ^
/usr/lib/clang/13.0.0/include/altivec.h:8568:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector __bool unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_sel(vector bool short __a, vector bool short __b, vector bool short __c) {
^
/usr/lib/clang/13.0.0/include/altivec.h:8572:43: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector int' (vector of 4 'int' values) for 1st argument
static __inline__ vector int __ATTRS_o_ai vec_sel(vector int __a,
                                          ^
/usr/lib/clang/13.0.0/include/altivec.h:8578:43: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector int' (vector of 4 'int' values) for 1st argument
static __inline__ vector int __ATTRS_o_ai vec_sel(vector int __a,
                                          ^
/usr/lib/clang/13.0.0/include/altivec.h:8584:52: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector unsigned int' (vector of 4 'unsigned int' values) for 1st argument
static __inline__ vector unsigned int __ATTRS_o_ai vec_sel(
                                                   ^
/usr/lib/clang/13.0.0/include/altivec.h:8590:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector unsigned int' (vector of 4 'unsigned int' values) for 1st argument
vec_sel(vector unsigned int __a, vector unsigned int __b, vector bool int __c) {
^
/usr/lib/clang/13.0.0/include/altivec.h:8595:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector __bool unsigned int' (vector of 4 'unsigned int' values) for 1st argument
vec_sel(vector bool int __a, vector bool int __b, vector unsigned int __c) {
^
/usr/lib/clang/13.0.0/include/altivec.h:8599:48: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector __bool unsigned int' (vector of 4 'unsigned int' values) for 1st argument
static __inline__ vector bool int __ATTRS_o_ai vec_sel(vector bool int __a,
                                               ^
/usr/lib/clang/13.0.0/include/altivec.h:8605:45: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector float' (vector of 4 'float' values) for 1st argument
static __inline__ vector float __ATTRS_o_ai vec_sel(vector float __a,
                                            ^
/usr/lib/clang/13.0.0/include/altivec.h:8613:45: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector float' (vector of 4 'float' values) for 1st argument
static __inline__ vector float __ATTRS_o_ai vec_sel(vector float __a,
                                            ^
/usr/lib/clang/13.0.0/include/altivec.h:8623:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector double' (vector of 2 'double' values) for 1st argument
vec_sel(vector double __a, vector double __b, vector bool long long __c) {
^
/usr/lib/clang/13.0.0/include/altivec.h:8630:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector double' (vector of 2 'double' values) for 1st argument
vec_sel(vector double __a, vector double __b, vector unsigned long long __c) {
^
/usr/lib/clang/13.0.0/include/altivec.h:8637:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector __bool unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_sel(vector bool long long __a, vector bool long long __b,
^
/usr/lib/clang/13.0.0/include/altivec.h:8643:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector __bool unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_sel(vector bool long long __a, vector bool long long __b,
^
/usr/lib/clang/13.0.0/include/altivec.h:8650:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector long long' (vector of 2 'long long' values) for 1st argument
vec_sel(vector signed long long __a, vector signed long long __b,
^
/usr/lib/clang/13.0.0/include/altivec.h:8657:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector long long' (vector of 2 'long long' values) for 1st argument
vec_sel(vector signed long long __a, vector signed long long __b,
^
/usr/lib/clang/13.0.0/include/altivec.h:8664:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_sel(vector unsigned long long __a, vector unsigned long long __b,
^
/usr/lib/clang/13.0.0/include/altivec.h:8671:1: note: candidate function not viable: no known conversion from 'vfloat32' (aka 'float') to '__vector unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_sel(vector unsigned long long __a, vector unsigned long long __b,
^
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/Col2Im.cpp:6:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/im2col.h:7:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/cpu/utils.h:3:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec.h:6:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256.h:19:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vec256_common_vsx.h:5:
/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vsx_helpers.h:145:57: error: no matching function for call to 'vec_max'
C10_VSX_VEC_NAN_PROPAG(vec_max_nan2, vfloat32, vbool32, vec_max)
                                                        ^~~~~~~
/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vsx_helpers.h:137:16: note: expanded from macro 'C10_VSX_VEC_NAN_PROPAG'
    type tmp = func(a, b);                                    \
               ^~~~
/usr/lib/clang/13.0.0/include/altivec.h:4786:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector signed char' (vector of 16 'signed char' values) for 1st argument
vec_max(vector signed char __a, vector signed char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:4791:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned char' (vector of 16 'unsigned char' values) for 1st argument
vec_max(vector bool char __a, vector signed char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:4796:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector signed char' (vector of 16 'signed char' values) for 1st argument
vec_max(vector signed char __a, vector bool char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:4801:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned char' (vector of 16 'unsigned char' values) for 1st argument
vec_max(vector unsigned char __a, vector unsigned char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:4806:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned char' (vector of 16 'unsigned char' values) for 1st argument
vec_max(vector bool char __a, vector unsigned char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:4811:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned char' (vector of 16 'unsigned char' values) for 1st argument
vec_max(vector unsigned char __a, vector bool char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:4815:45: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector short' (vector of 8 'short' values) for 1st argument
static __inline__ vector short __ATTRS_o_ai vec_max(vector short __a,
                                            ^
/usr/lib/clang/13.0.0/include/altivec.h:4820:45: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned short' (vector of 8 'unsigned short' values) for 1st argument
static __inline__ vector short __ATTRS_o_ai vec_max(vector bool short __a,
                                            ^
/usr/lib/clang/13.0.0/include/altivec.h:4825:45: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector short' (vector of 8 'short' values) for 1st argument
static __inline__ vector short __ATTRS_o_ai vec_max(vector short __a,
                                            ^
/usr/lib/clang/13.0.0/include/altivec.h:4831:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_max(vector unsigned short __a, vector unsigned short __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:4836:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_max(vector bool short __a, vector unsigned short __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:4841:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_max(vector unsigned short __a, vector bool short __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:4845:43: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector int' (vector of 4 'int' values) for 1st argument
static __inline__ vector int __ATTRS_o_ai vec_max(vector int __a,
                                          ^
/usr/lib/clang/13.0.0/include/altivec.h:4850:43: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned int' (vector of 4 'unsigned int' values) for 1st argument
static __inline__ vector int __ATTRS_o_ai vec_max(vector bool int __a,
                                          ^
/usr/lib/clang/13.0.0/include/altivec.h:4855:43: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector int' (vector of 4 'int' values) for 1st argument
static __inline__ vector int __ATTRS_o_ai vec_max(vector int __a,
                                          ^
/usr/lib/clang/13.0.0/include/altivec.h:4861:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned int' (vector of 4 'unsigned int' values) for 1st argument
vec_max(vector unsigned int __a, vector unsigned int __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:4866:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned int' (vector of 4 'unsigned int' values) for 1st argument
vec_max(vector bool int __a, vector unsigned int __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:4871:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned int' (vector of 4 'unsigned int' values) for 1st argument
vec_max(vector unsigned int __a, vector bool int __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:4877:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector long long' (vector of 2 'long long' values) for 1st argument
vec_max(vector signed long long __a, vector signed long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:4882:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_max(vector bool long long __a, vector signed long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:4887:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector long long' (vector of 2 'long long' values) for 1st argument
vec_max(vector signed long long __a, vector bool long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:4892:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_max(vector unsigned long long __a, vector unsigned long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:4897:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_max(vector bool long long __a, vector unsigned long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:4902:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_max(vector unsigned long long __a, vector bool long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:4907:45: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector float' (vector of 4 'float' values) for 1st argument
static __inline__ vector float __ATTRS_o_ai vec_max(vector float __a,
                                            ^
/usr/lib/clang/13.0.0/include/altivec.h:4917:46: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector double' (vector of 2 'double' values) for 1st argument
static __inline__ vector double __ATTRS_o_ai vec_max(vector double __a,
                                             ^
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/Col2Im.cpp:6:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/im2col.h:7:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/cpu/utils.h:3:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec.h:6:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256.h:19:
In file included from /wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vec256_common_vsx.h:5:
/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vsx_helpers.h:145:1: error: no matching function for call to 'vec_cmpne'
C10_VSX_VEC_NAN_PROPAG(vec_max_nan2, vfloat32, vbool32, vec_max)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vsx/vsx_helpers.h:138:19: note: expanded from macro 'C10_VSX_VEC_NAN_PROPAG'
    btype nan_a = vec_cmpne(a, a);                            \
                  ^~~~~~~~~
/usr/lib/clang/13.0.0/include/altivec.h:2002:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned char' (vector of 16 'unsigned char' values) for 1st argument
vec_cmpne(vector bool char __a, vector bool char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2007:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector signed char' (vector of 16 'signed char' values) for 1st argument
vec_cmpne(vector signed char __a, vector signed char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2012:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned char' (vector of 16 'unsigned char' values) for 1st argument
vec_cmpne(vector unsigned char __a, vector unsigned char __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2017:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_cmpne(vector bool short __a, vector bool short __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2022:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector short' (vector of 8 'short' values) for 1st argument
vec_cmpne(vector signed short __a, vector signed short __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2027:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned short' (vector of 8 'unsigned short' values) for 1st argument
vec_cmpne(vector unsigned short __a, vector unsigned short __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2032:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned int' (vector of 4 'unsigned int' values) for 1st argument
vec_cmpne(vector bool int __a, vector bool int __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2037:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector int' (vector of 4 'int' values) for 1st argument
vec_cmpne(vector signed int __a, vector signed int __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2042:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned int' (vector of 4 'unsigned int' values) for 1st argument
vec_cmpne(vector unsigned int __a, vector unsigned int __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2047:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector float' (vector of 4 'float' values) for 1st argument
vec_cmpne(vector float __a, vector float __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2054:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector __bool unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_cmpne(vector bool long long __a, vector bool long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2060:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector long long' (vector of 2 'long long' values) for 1st argument
vec_cmpne(vector signed long long __a, vector signed long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2066:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector unsigned long long' (vector of 2 'unsigned long long' values) for 1st argument
vec_cmpne(vector unsigned long long __a, vector unsigned long long __b) {
^
/usr/lib/clang/13.0.0/include/altivec.h:2092:1: note: candidate function not viable: no known conversion from 'const vfloat32' (aka 'const float') to '__vector double' (vector of 2 'double' values) for 1st argument
vec_cmpne(vector double __a, vector double __b) {
^
```

### Versions

1.13.1

cc @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10