Skip to content

CPP extensions Update #10

@UsernameN0tAvailable

Description

@UsernameN0tAvailable

The cpp extensions do not compile anymore with newer version of torch, I've encountered the following two errors using versions >= 1.13.0

cpp_functions.cpp:85:28: error: ‘struct DLTensor’ has no member named ‘ctx’
   85 |       dlMTensor->dl_tensor.ctx.device_id = device_id;
      |                        
cpp_functions.cpp:24:14: error: ‘cudnn_convolution_backward_weight’ is not a member of ‘at’; did you mean ‘mps_convolution_backward_out’?
   24 |   return at::cudnn_convolution_backward_weight(
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              mps_convolution_backward_out
cpp_functions.cpp:48:14: error: ‘cudnn_convolution_backward_input’ is not a member of ‘at’; did you mean ‘mps_convolution_backward_out’?
   48 |   return at::cudnn_convolution_backward_input(
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |              mps_convolution_backward_out

This is very likely due to versions mismatch, is there any fix for this or a newer version of the cpp extensions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions