No kernel image is available for execution on the device pytorch quadro "k4200"

Hi,
As you mentioned max_jobs worked and completed building pytorch. But when I am importing the torch I am getting error,

NameError: name ‘sympy’ is not defined

I was trying to install the sympy but it says it require python3.8, so I have created another conda env with python3.8 and build the torch again but this time it just took 5 seconds, then I imported the torch again but this time getting error

import torch
Segmentation fault (core dumped)

from the Segmentation Fault when importing PyTorch - #4 by ptrblck link I have tried this,

(fr1) root@ca1573a3247c:/# gdb python3 r -c “imort torch” bt
Excess command line arguments ignored. (r …)
GNU gdb (Ubuntu 10.2-0ubuntu1~18.04~2) 10.2
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type “show copying” and “show warranty” for details.
This GDB was configured as “x86_64-linux-gnu”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
https://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.

For help, type “help”.
Type “apropos word” to search for commands related to “word”…
Reading symbols from python3…
/imort