hi,
i am using a c++/cuda custom extension.
when running the extension, i get this error:
RuntimeError: CUDA error: invalid device function

at the very first call of a function in the extension.
could the nvcc version and cuda versions be the cause since pytorch is shipped with its cuda?
the packages are maintained in a conda env.
the custom function was installed with:
python setup.y build
python setup.y install

within the virtual env.
this is the setup.py file:
from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension

setup(
    name='extensions',
    ext_modules=[
        CUDAExtension('HT_opp', [
            'cuda_opps/HT.cpp',
            'cuda_opps/HT_kernel.cu',
        ]),
    ],
    cmdclass={
        'build_ext': BuildExtension
    })

i am using a pytorch module that is using the extension.
the error is raised in this module when calling a function in the extension.
python 3.7.9
pytorch 1.9.0 installed with conda install pytorch==1.9.0 torchvision==0.10.0 cudatoolkit=11.1 -c pytorch -c nvidia
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Sat_Aug_25_21:08:01_CDT_2018
Cuda compilation tools, release 10.0, V10.0.130
CUDA Version of nvidia-smi: 11.1
still reading this 4…
thanks