Skip to content

adaptive_conv_cuda_impl adaptive_conv_cuda.cpp adaptive_conv_kernel.cu #87

@yiiizuo

Description

@yiiizuo

How can I replace the CUDA compilation modules in the code within Ascend?

code link: https://github.com/mhamilton723/FeatUp
pip install git+https://github.com/mhamilton723/FeatUp

#include <cuda.h>
#include <ATen/cuda/CUDAContext.h>
#include <cuda_runtime.h>

ext_modules=[
    CUDAExtension(
        'adaptive_conv_cuda_impl',
        [
            'featup/adaptive_conv_cuda/adaptive_conv_cuda.cpp',
            'featup/adaptive_conv_cuda/adaptive_conv_kernel.cu',
        ]),
    CppExtension(
        'adaptive_conv_cpp_impl',
        ['featup/adaptive_conv_cuda/adaptive_conv.cpp'],
        undef_macros=["NDEBUG"]),
],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions