This configuration line is no longer correct with CUDA 10.1:
nvcc_compile_args = ['-O', '--ptxas-options=-v', '-arch=sm_35', '-c', '--compiler-options=-fPIC']
That will generate a nvcc compile command that looks like this:
nvcc -O ...
With CUDA 10.0 and prior, such a command was legal. With CUDA 10.1 it is not. This switch passes the optimization level for host code, so barring any reason not to, I would recommend passing -O3
here:
nvcc_compile_args = ['-O3', '--ptxas-options=-v', '-arch=sm_35', '-c', '--compiler-options=-fPIC']
The relevant doc link is here