Re: Installing openAI's GPT-2 Ada AI Language Model

From: Mario Marietto <marietto2008_at_gmail.com>
Date: Fri, 21 Apr 2023 10:18:45 UTC
Can't you install pytorch using the linux miniconda installer like below ?

# fetch https://gist.githubusercontent.com/shkhln/40ef290463e78fb2b0000c60f4ad797e/raw/f640983249607e38af405c95c457ce4afc85c608/uvm_ioctl_override.c

# /compat/ubuntu/bin/gcc --sysroot=/compat/ubuntu -m64 -std=c99 -Wall
-ldl -fPIC -shared -o dummy-uvm.so uvm_ioctl_override.c

# pkg install linux-miniconda-installer
# miniconda-installer
# bash
# source /home/marietto/miniconda3/etc/profile.d/conda.sh
# conda activate

(base) # conda activate pytorch


On Fri, Apr 21, 2023 at 2:38 AM Aryeh Friedman <aryeh.friedman@gmail.com>
wrote:

> On Thu, Apr 20, 2023 at 12:24 PM Mario Marietto <marietto2008@gmail.com>
> wrote:
> >
> > try to copy and paste the commands that you have issued on pastebin...i
> need to understand the scenario
>
> After saving the patch from the bug report to PORT/files and running
> portmaster -P misc/pytourch (brand new machine except for  installing
> portmaster):
>
> c/ATen/UfuncCPUKernel_add.cpp.AVX2.cpp.o -c
>
> /usr/ports/misc/pytorch/work/.build/aten/src/ATen/UfuncCPUKernel_add.cpp.AVX2.cpp
> In file included from
>
> /usr/ports/misc/pytorch/work/.build/aten/src/ATen/UfuncCPUKernel_add.cpp.AVX2.cpp:1:
> In file included from
> /usr/ports/misc/pytorch/work/.build/aten/src/ATen/UfuncCPUKernel_add.cpp:3:
> In file included from
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/native/ufunc/add.h:6:
> In file included from
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/functional.h:3:
> In file included from
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/functional_base.h:6:
> In file included from
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec.h:6:
> In file included from
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256.h:12:
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:253:16:
> error: cannot initialize a parameter of type 'const __m256
> (*)(__m256)' with an lvalue of type '__m256 (__m256)': different
> return type ('const __m256' (vector of 8 'float' values) vs '__m256'
> (vector of 8 'float' values))
>     return map(Sleef_acosf8_u10);
>                ^~~~~~~~~~~~~~~~
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:209:49:
> note: passing argument to parameter 'vop' here
>   Vectorized<BFloat16> map(const __m256 (*const vop)(__m256)) const {
>                                                 ^
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:256:16:
> error: cannot initialize a parameter of type 'const __m256
> (*)(__m256)' with an lvalue of type '__m256 (__m256)': different
> return type ('const __m256' (vector of 8 'float' values) vs '__m256'
> (vector of 8 'float' values))
>     return map(Sleef_asinf8_u10);
>                ^~~~~~~~~~~~~~~~
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:209:49:
> note: passing argument to parameter 'vop' here
>   Vectorized<BFloat16> map(const __m256 (*const vop)(__m256)) const {
>                                                 ^
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:259:16:
> error: cannot initialize a parameter of type 'const __m256
> (*)(__m256)' with an lvalue of type '__m256 (__m256)': different
> return type ('const __m256' (vector of 8 'float' values) vs '__m256'
> (vector of 8 'float' values))
>     return map(Sleef_atanf8_u10);
>                ^~~~~~~~~~~~~~~~
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:209:49:
> note: passing argument to parameter 'vop' here
>   Vectorized<BFloat16> map(const __m256 (*const vop)(__m256)) const {
>                                                 ^
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:280:16:
> error: cannot initialize a parameter of type 'const __m256
> (*)(__m256)' with an lvalue of type '__m256 (__m256)': different
> return type ('const __m256' (vector of 8 'float' values) vs '__m256'
> (vector of 8 'float' values))
>     return map(Sleef_erff8_u10);
>                ^~~~~~~~~~~~~~~
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:209:49:
> note: passing argument to parameter 'vop' here
>   Vectorized<BFloat16> map(const __m256 (*const vop)(__m256)) const {
>                                                 ^
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:283:16:
> error: cannot initialize a parameter of type 'const __m256
> (*)(__m256)' with an lvalue of type '__m256 (__m256)': different
> return type ('const __m256' (vector of 8 'float' values) vs '__m256'
> (vector of 8 'float' values))
>     return map(Sleef_erfcf8_u15);
>                ^~~~~~~~~~~~~~~~
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:209:49:
> note: passing argument to parameter 'vop' here
>   Vectorized<BFloat16> map(const __m256 (*const vop)(__m256)) const {
>                                                 ^
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:300:16:
> error: cannot initialize a parameter of type 'const __m256
> (*)(__m256)' with an lvalue of type '__m256 (__m256)': different
> return type ('const __m256' (vector of 8 'float' values) vs '__m256'
> (vector of 8 'float' values))
>     return map(Sleef_expf8_u10);
>                ^~~~~~~~~~~~~~~
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:209:49:
> note: passing argument to parameter 'vop' here
>   Vectorized<BFloat16> map(const __m256 (*const vop)(__m256)) const {
>                                                 ^
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:303:16:
> error: cannot initialize a parameter of type 'const __m256
> (*)(__m256)' with an lvalue of type '__m256 (__m256)': different
> return type ('const __m256' (vector of 8 'float' values) vs '__m256'
> (vector of 8 'float' values))
>     return map(Sleef_expm1f8_u10);
>                ^~~~~~~~~~~~~~~~~
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:209:49:
> note: passing argument to parameter 'vop' here
>   Vectorized<BFloat16> map(const __m256 (*const vop)(__m256)) const {
>                                                 ^
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:393:16:
> error: cannot initialize a parameter of type 'const __m256
> (*)(__m256)' with an lvalue of type '__m256 (__m256)': different
> return type ('const __m256' (vector of 8 'float' values) vs '__m256'
> (vector of 8 'float' values))
>     return map(Sleef_logf8_u10);
>                ^~~~~~~~~~~~~~~
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:209:49:
> note: passing argument to parameter 'vop' here
>   Vectorized<BFloat16> map(const __m256 (*const vop)(__m256)) const {
>                                                 ^
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:396:16:
> error: cannot initialize a parameter of type 'const __m256
> (*)(__m256)' with an lvalue of type '__m256 (__m256)': different
> return type ('const __m256' (vector of 8 'float' values) vs '__m256'
> (vector of 8 'float' values))
>     return map(Sleef_log2f8_u10);
>                ^~~~~~~~~~~~~~~~
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:209:49:
> note: passing argument to parameter 'vop' here
>   Vectorized<BFloat16> map(const __m256 (*const vop)(__m256)) const {
>                                                 ^
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:399:16:
> error: cannot initialize a parameter of type 'const __m256
> (*)(__m256)' with an lvalue of type '__m256 (__m256)': different
> return type ('const __m256' (vector of 8 'float' values) vs '__m256'
> (vector of 8 'float' values))
>     return map(Sleef_log10f8_u10);
>                ^~~~~~~~~~~~~~~~~
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:209:49:
> note: passing argument to parameter 'vop' here
>   Vectorized<BFloat16> map(const __m256 (*const vop)(__m256)) const {
>                                                 ^
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:402:16:
> error: cannot initialize a parameter of type 'const __m256
> (*)(__m256)' with an lvalue of type '__m256 (__m256)': different
> return type ('const __m256' (vector of 8 'float' values) vs '__m256'
> (vector of 8 'float' values))
>     return map(Sleef_log1pf8_u10);
>                ^~~~~~~~~~~~~~~~~
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:209:49:
> note: passing argument to parameter 'vop' here
>   Vectorized<BFloat16> map(const __m256 (*const vop)(__m256)) const {
>                                                 ^
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:406:16:
> error: cannot initialize a parameter of type 'const __m256
> (*)(__m256)' with an lvalue of type '__m256 (__m256)': different
> return type ('const __m256' (vector of 8 'float' values) vs '__m256'
> (vector of 8 'float' values))
>     return map(Sleef_sinf8_u10);
>                ^~~~~~~~~~~~~~~
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:209:49:
> note: passing argument to parameter 'vop' here
>   Vectorized<BFloat16> map(const __m256 (*const vop)(__m256)) const {
>                                                 ^
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:409:16:
> error: cannot initialize a parameter of type 'const __m256
> (*)(__m256)' with an lvalue of type '__m256 (__m256)': different
> return type ('const __m256' (vector of 8 'float' values) vs '__m256'
> (vector of 8 'float' values))
>     return map(Sleef_sinhf8_u10);
>                ^~~~~~~~~~~~~~~~
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:209:49:
> note: passing argument to parameter 'vop' here
>   Vectorized<BFloat16> map(const __m256 (*const vop)(__m256)) const {
>                                                 ^
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:412:16:
> error: cannot initialize a parameter of type 'const __m256
> (*)(__m256)' with an lvalue of type '__m256 (__m256)': different
> return type ('const __m256' (vector of 8 'float' values) vs '__m256'
> (vector of 8 'float' values))
>     return map(Sleef_cosf8_u10);
>                ^~~~~~~~~~~~~~~
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:209:49:
> note: passing argument to parameter 'vop' here
>   Vectorized<BFloat16> map(const __m256 (*const vop)(__m256)) const {
>                                                 ^
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:415:16:
> error: cannot initialize a parameter of type 'const __m256
> (*)(__m256)' with an lvalue of type '__m256 (__m256)': different
> return type ('const __m256' (vector of 8 'float' values) vs '__m256'
> (vector of 8 'float' values))
>     return map(Sleef_coshf8_u10);
>                ^~~~~~~~~~~~~~~~
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:209:49:
> note: passing argument to parameter 'vop' here
>   Vectorized<BFloat16> map(const __m256 (*const vop)(__m256)) const {
>                                                 ^
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:447:16:
> error: cannot initialize a parameter of type 'const __m256
> (*)(__m256)' with an lvalue of type '__m256 (__m256)': different
> return type ('const __m256' (vector of 8 'float' values) vs '__m256'
> (vector of 8 'float' values))
>     return map(Sleef_tanf8_u10);
>                ^~~~~~~~~~~~~~~
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:209:49:
> note: passing argument to parameter 'vop' here
>   Vectorized<BFloat16> map(const __m256 (*const vop)(__m256)) const {
>                                                 ^
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:450:16:
> error: cannot initialize a parameter of type 'const __m256
> (*)(__m256)' with an lvalue of type '__m256 (__m256)': different
> return type ('const __m256' (vector of 8 'float' values) vs '__m256'
> (vector of 8 'float' values))
>     return map(Sleef_tanhf8_u10);
>                ^~~~~~~~~~~~~~~~
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:209:49:
> note: passing argument to parameter 'vop' here
>   Vectorized<BFloat16> map(const __m256 (*const vop)(__m256)) const {
>                                                 ^
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:460:16:
> error: cannot initialize a parameter of type 'const __m256
> (*)(__m256)' with an lvalue of type '__m256 (__m256)': different
> return type ('const __m256' (vector of 8 'float' values) vs '__m256'
> (vector of 8 'float' values))
>     return map(Sleef_lgammaf8_u10);
>                ^~~~~~~~~~~~~~~~~~
>
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/cpu/vec/vec256/vec256_bfloat16.h:209:49:
> note: passing argument to parameter 'vop' here
>   Vectorized<BFloat16> map(const __m256 (*const vop)(__m256)) const {
>                                                 ^
> 18 errors generated.
> [ 80% 1035/1283] /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/usr/ports/misc/pytorch/work/.build/aten/src
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src
> -I/usr/ports/misc/pytorch/work/.build
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/foxi
> -I/usr/ports/misc/pytorch/work/.build/third_party/foxi
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/torch/csrc/api
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/torch/csrc/api/include
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/caffe2/aten/src/TH
> -I/usr/ports/misc/pytorch/work/.build/caffe2/aten/src/TH
> -I/usr/ports/misc/pytorch/work/.build/caffe2/aten/src
> -I/usr/ports/misc/pytorch/work/.build/caffe2/../aten/src
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/torch/csrc
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/miniz-2.1.0
>
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/kineto/libkineto/include
>
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/kineto/libkineto/src
>
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/../third_party/catch/single_include
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/..
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/c10/..
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/cpuinfo/include
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/FP16/include
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/fmt/include
>
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/flatbuffers/include
> -isystem
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/cmake/../third_party/eigen
> -isystem /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 -DHAVE_AVX512_CPU_DEFINITION
> -DHAVE_AVX2_CPU_DEFINITION -O2 -pipe -fstack-protector-strong -isystem
> /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include
> -DNDEBUG -DNDEBUG -std=gnu++14 -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 -MD -MT
>
> caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/api/src/serialize/input-archive.cpp.o
> -MF
> caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/api/src/serialize/input-archive.cpp.o.d
> -o
> caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/api/src/serialize/input-archive.cpp.o
> -c
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/torch/csrc/api/src/serialize/input-archive.cpp
> [ 80% 1035/1283] /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/usr/ports/misc/pytorch/work/.build/aten/src
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src
> -I/usr/ports/misc/pytorch/work/.build
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/foxi
> -I/usr/ports/misc/pytorch/work/.build/third_party/foxi
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/torch/csrc/api
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/torch/csrc/api/include
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/caffe2/aten/src/TH
> -I/usr/ports/misc/pytorch/work/.build/caffe2/aten/src/TH
> -I/usr/ports/misc/pytorch/work/.build/caffe2/aten/src
> -I/usr/ports/misc/pytorch/work/.build/caffe2/../aten/src
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/torch/csrc
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/miniz-2.1.0
>
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/kineto/libkineto/include
>
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/kineto/libkineto/src
>
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/../third_party/catch/single_include
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/aten/src/ATen/..
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/c10/..
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/cpuinfo/include
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/FP16/include
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/fmt/include
>
> -I/usr/ports/misc/pytorch/work/pytorch-v1.13.1/third_party/flatbuffers/include
> -isystem
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/cmake/../third_party/eigen
> -isystem /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 -DHAVE_AVX512_CPU_DEFINITION
> -DHAVE_AVX2_CPU_DEFINITION -O2 -pipe -fstack-protector-strong -isystem
> /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include
> -DNDEBUG -DNDEBUG -std=gnu++14 -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 -MD -MT
>
> caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/api/src/serialize/output-archive.cpp.o
> -MF
> caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/api/src/serialize/output-archive.cpp.o.d
> -o
> caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/api/src/serialize/output-archive.cpp.o
> -c
> /usr/ports/misc/pytorch/work/pytorch-v1.13.1/torch/csrc/api/src/serialize/output-archive.cpp
> ninja: build stopped: subcommand failed.
> ===> Compilation failed unexpectedly.
> Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
> the maintainer.
> *** Error code 1
>
> Stop.
> make: stopped in /usr/ports/misc/pytorch
>
> >
> > Il gio 20 apr 2023, 17:51 Aryeh Friedman <aryeh.friedman@gmail.com> ha
> scritto:
> >>
> >> On Thu, Apr 20, 2023 at 7:52 AM Thierry Thomas <thierry@freebsd.org>
> wrote:
> >> >
> >> > Le jeu. 20 avr. 23 à 12:53:05 +0200, Aryeh Friedman <
> aryeh.friedman@gmail.com>
> >> >  écrivait :
> >> >
> >> > > Running without GPU (for now) on a bhyve vm (3 CPU, 2 GB RAM and 100
> >> > > GB of disk) which I intend for determining if it is worse going out
> >> > > and getting the hardware to do GPU.   The problem I had was getting
> >> > > pytorch to work since it appears I have to build it from source and
> it
> >> > > blows up in that build.
> >> >
> >> > Have you seen
> >> > <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269739> ?
> >>
> >> This seems to be true for all OS's I guess I will have to find an
> >> intel machine... this is as bad as the motivation that led me to do
> >> petitecloud in the first place (openstack not running on AMD period).
> >>  Is there just no way to run a ANN in pytorch data format in any other
> >> way that is not python (like Java?!!?) note the tensorflow port
> >> required pytorch
> >>
> >>
> >> --
> >> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
> >>
>
>
> --
> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
>


-- 
Mario.