extension-cpp icon indicating copy to clipboard operation
extension-cpp copied to clipboard

C++ extensions in PyTorch

Results 58 extension-cpp issues
Sort by recently updated
recently updated
newest added

mycode -setup.py -a_cuda_kernel.cu -a_cuda.cpp I need to open rdc mode,so from setuptools import setup from torch.utils.cpp_extension import BuildExtension, CUDAExtension setup( name='a_cuda', ext_modules=[ CUDAExtension('a_cuda', [ 'a_cuda.cpp', 'a_cuda_kernel.cu', ],extra_compile_args={'nvcc':['-rdc','true']}), ], cmdclass={ 'build_ext':...

python : 3.7 cuda : 11.1 pytorch : 1.8 I am trying to compile the cuda code which does not work, could you have a look please? thanks ``` Traceback...

- OS: win10 - PyTorch version: 1.10 - How you installed PyTorch (conda, pip, source): pip - Python version: 3.9 - CUDA/cuDNN version: 11.3 - GPU models and configuration: 1650...

Hi. I am interested in writing a custom C++/CUDA extension. The tutorial [here](https://pytorch.org/tutorials/advanced/cpp_extension.html) only shows a scenario where you have a pure CUDA kernel which will not work on a...

Hi! I am wondering how to debug in such environment? I have tried to insert a "printf("hello wolrd")" sentence in .cu file, but it compiles failure! If I delete it,...

I am trying to use the JIT cpp extension, and have a script from my friend, who is able to run it in linux, but whenever I run it on...

I think there's a mistake in the cpp section and I want to ask before I "fix" it. It doesn't technically cause an error, but it makes it harder to...

PyTorch GitHub Issues Guidelines -------------------------------- We like to limit our issues to bug reports and feature requests. If you have a question or would like help and support, please visit...

Hi, I tried to build the extension using your sc. I managed to build from cpp/setup.py and was able to import it. However, I just cannot build from cuda/setup.py. I...

Hi,Peter CMD: python3 jit2.py no result,help, pls ... Loading extension module lltm_cuda... Traceback (most recent call last): File "jit2.py", line 24, in verbose=True File "E:\Python36\lib\site-packages\torch\utils\cpp_extension.py", line 645, i n load...