Change:
Trying to run on github actions via AWS instance gives me: I will of course set up now, but it shouldn't crash like that. May be it should use as a fallback? pt-2.0 cc
Is this a multitenant setup? Also curious which distro are you running, I was under the impression that most linux distros set home by default
this is AWS image. one default user. I think it's user, but it wants you to run as root, which is weird. I have manually now set to overcome this.
We should update triton to use pathlib or something

Discussion:
torch/csrc/nn/THNN_generic.cwrap torch/csrc/nn/THNN_generic.cpp torch/csrc/nn/THNN_generic.h <ins> torch/csrc/generated </ins> docs/src/**/* test/data/legacy_modules.t7 test/data/gpu_tensors.pt

from tools.setup_helpers.env import check_env_flag from tools.setup_helpers.cuda import WITH_CUDA, CUDA_HOME from tools.setup_helpers.cudnn import WITH_CUDNN, CUDNN_LIB_DIR, CUDNN_INCLUDE_DIR <ins> from tools.setup_helpers.split_types import split_types </ins> DEBUG = check_env_flag('DEBUG') WITH_DISTRIBUTED = check_env_flag('WITH_DISTRIBUTED') WITH_DISTRIBUTED_MW = WITH_DISTRIBUTED and check_env_flag('WITH_DISTRIBUTED_MW')

"torch/csrc/Generator.cpp", "torch/csrc/Size.cpp", "torch/csrc/Exceptions.cpp", <del> "torch/csrc/Tensor.cpp", </del> "torch/csrc/Storage.cpp", "torch/csrc/DynamicTypes.cpp", "torch/csrc/byte_order.cpp",

"torch/csrc/autograd/functions/convolution.cpp", "torch/csrc/autograd/functions/init.cpp", "torch/csrc/nn/THNN_generic.cpp", <ins> *split_types("torch/csrc/Tensor.cpp") </ins> ] try:

"torch/csrc/cuda/Module.cpp", "torch/csrc/cuda/Storage.cpp", "torch/csrc/cuda/Stream.cpp", <del> "torch/csrc/cuda/Tensor.cpp", </del> "torch/csrc/cuda/AutoGPU.cpp", "torch/csrc/cuda/utils.cpp", "torch/csrc/cuda/serialization.cpp", <ins> *split_types("torch/csrc/cuda/Tensor.cpp"), </ins> ] if WITH_NCCL:

<ins> import os this_file = os.path.dirname(os.path.abspath(__file__)) generated_dir = os.path.abspath(os.path.join(this_file, '..', '..', 'torch', 'csrc', 'generated')) line_start = '//generic_include ' types = [ 'Double', 'Float', 'Half', 'Long', 'Int', 'Short', 'Char', 'Byte' ] generic_include = '#define {lib}_GENERIC_FILE "{path}"' generate_include = '#include "{lib}/{lib}Generate{type}Type.h"' def split_types(file_name): assert file_name.startswith('torch/csrc/') if not os.path.exists(generated_dir): os.makedirs(generated_dir) with open(file_name, 'r') as f: lines = f.read().split('n') # Find //generic_include for i, l in enumerate(lines): if l.startswith(line_start): args = l[len(line_start):] lib_prefix, generic_file = filter(bool, args.split()) break else: raise RuntimeError("generic include not found") gen_name_prefix = file_name[len('torch/csrc/'):].replace('/', '_').replace('.cpp', '') gen_path_prefix = os.path.join(generated_dir, gen_name_prefix) prefix = 'n'.join(lines[:i]) suffix = 'n'.join(lines[i + 1:]) to_build = [] g_include = generic_include.format(lib=lib_prefix, path=generic_file) for t in types: t_include = generate_include.format(lib=lib_prefix, type=t) gen_path = gen_path_prefix + t + '.cpp' to_build.append(gen_path) with open(gen_path, 'w') as f: f.write(prefix + 'n' + g_include + 'n' + t_include + 'n' + suffix) return to_build </ins>

#include <tuple> #include <TH/THMath.h> <del> #include "THP.h" #include "copy_utils.h" #include "DynamicTypes.h" </del> <ins> #include "torch/csrc/THP.h" #include "torch/csrc/copy_utils.h" #include "torch/csrc/DynamicTypes.h" </ins> <del> #include "generic/Tensor.cpp" #include <TH/THGenerateAllTypes.h> #include "generic/Tensor.cpp" #include <TH/THGenerateHalfType.h> </del> <ins> //generic_include TH torch/csrc/generic/Tensor.cpp </ins>

#include <vector> #include <stack> #include <tuple> <del> #include "THCP.h" </del> <ins> #include "torch/csrc/cuda/THCP.h" </ins> <del> #include "override_macros.h" </del> <ins> #include "torch/csrc/cuda/override_macros.h" </ins> #include "torch/csrc/copy_utils.h" #include "DynamicTypes.h" <del> #define THC_GENERIC_FILE "torch/csrc/generic/Tensor.cpp" #include <THC/THCGenerateAllTypes.h> </del> <ins> //generic_include THC torch/csrc/generic/Tensor.cpp </ins> <del> #include "undef_macros.h" #include "restore_macros.h" </del> <ins> #include "torch/csrc/cuda/undef_macros.h" #include "torch/csrc/cuda/restore_macros.h" </ins>

- THTensor* tensor2 ]] <del> #ifndef THP_LAPACK_CONSTANTS #define THP_LAPACK_CONSTANTS </del> <ins> #if defined(TH_REAL_IS_FLOAT) || defined(TH_REAL_IS_DOUBLE) || CUDA_FLOAT || CUDA_DOUBLE </ins> // We need to pass pointers to chars to tensor lapack functions... static const char __U = 'U'; static const char __L = 'L';