Skip to content

Conversation

@noemotiovon
Copy link
Collaborator

Fix compilation errors in the ASCEND_310P-specific ROPE operation code by adding .get() calls when passing acl_tensor_ptr smart pointers to functions expecting raw aclTensor* pointers.

This fixes the code that was missed in the previous refactoring commit (8981848) which changed ggml_cann_create_tensor() return type from aclTensor* to acl_tensor_ptr.

Fix compilation errors in the ASCEND_310P-specific ROPE operation code
by adding .get() calls when passing acl_tensor_ptr smart pointers to
functions expecting raw aclTensor* pointers.

This fixes the code that was missed in the previous refactoring commit
(8981848) which changed ggml_cann_create_tensor() return type from
aclTensor* to acl_tensor_ptr.
@hipudding
Copy link
Collaborator

hipudding commented Nov 18, 2025

Thanks for you patch. Verified on 310 devices.

@hipudding hipudding self-requested a review November 18, 2025 06:57
Copy link
Collaborator

@hipudding hipudding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please format these code changes.

@hipudding hipudding added the Ascend NPU issues specific to Ascend NPUs label Nov 18, 2025
@github-actions github-actions bot added the ggml changes relating to the ggml tensor library for machine learning label Nov 18, 2025
@noemotiovon
Copy link
Collaborator Author

Please format these code changes.

Thanks for the reminder! I’ve formatted the code.

@hipudding
Copy link
Collaborator

This change is only related to the CANN backend. Given the tight CI resources, we are merging this fix to resolve the issue as quickly as possible.

@hipudding hipudding merged commit bc4064c into ggml-org:master Nov 18, 2025
73 of 75 checks passed
ronaldmannak pushed a commit to PicoMLX/llama.cpp that referenced this pull request Nov 19, 2025
* cann: fix acl_tensor_ptr usage in ASCEND_310P ROPE implementation

Fix compilation errors in the ASCEND_310P-specific ROPE operation code
by adding .get() calls when passing acl_tensor_ptr smart pointers to
functions expecting raw aclTensor* pointers.

This fixes the code that was missed in the previous refactoring commit
(8981848) which changed ggml_cann_create_tensor() return type from
aclTensor* to acl_tensor_ptr.

* cann: format code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ascend NPU issues specific to Ascend NPUs ggml changes relating to the ggml tensor library for machine learning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants