Torch compile error

Hi! I have troubles using the torch.compile with any compilation attempt resulting with the following error.

BackendCompilerFailed: backend=‘inductor’ raised:
CppCompileError: C++ compile error

Command:
g++ /tmp/torchinductor_kharitok/ry/cryqhwcqbu2kfchsyxzmhfsmaxu7ez3e3ulu6xddcanfcyfqrsp4.cpp -shared -fPIC -Wall -std=c++17 -Wno-unused-variable -Wno-unknown-pragmas -D_GLIBCXX_USE_CXX11_ABI=0 -I/gpfs/exfel/data/scratch/kkonstantin/Envs/Torch 2.4/lib/python3.11/site-packages/torch/include -I/gpfs/exfel/data/scratch/kkonstantin/Envs/Torch 2.4/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/gpfs/exfel/data/scratch/kkonstantin/Envs/Torch 2.4/lib/python3.11/site-packages/torch/include/TH -I/gpfs/exfel/data/scratch/kkonstantin/Envs/Torch 2.4/lib/python3.11/site-packages/torch/include/THC -I/gpfs/exfel/data/scratch/kkonstantin/Envs/Torch 2.4/include/python3.11 -L/gpfs/exfel/data/scratch/kkonstantin/Envs/Torch 2.4/lib/python3.11/site-packages/torch/lib -lgomp -lc10 -O3 -DNDEBUG -ffast-math -fno-finite-math-only -fno-unsafe-math-optimizations -ffp-contract=off -march=native -fopenmp -D TORCH_INDUCTOR_CPP_WRAPPER -D C10_USING_CUSTOM_GENERATED_MACROS -o /tmp/torchinductor_kharitok/ry/cryqhwcqbu2kfchsyxzmhfsmaxu7ez3e3ulu6xddcanfcyfqrsp4.so

Output:
In file included from /tmp/torchinductor_kharitok/ry/cryqhwcqbu2kfchsyxzmhfsmaxu7ez3e3ulu6xddcanfcyfqrsp4.cpp:2:
/tmp/torchinductor_kharitok/sk/cskh5dx62fglpphcrl6723dnmowdabouerrzy3dmqcngbxwfa7bv.h:17:10: fatal error: ATen/NumericUtils.h: No such file or directory
17 | #include <ATen/NumericUtils.h>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Do you have any advises on how I can solve it?

Could you try a clean install?