File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1766,16 +1766,17 @@ jobs:
1766
1766
if : ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'Ascend NPU') }}
1767
1767
defaults :
1768
1768
run :
1769
- shell : bash -el {0}
1770
- runs-on : ubuntu-24.04-arm
1769
+ shell : bash -el {0}
1771
1770
strategy :
1772
1771
matrix :
1772
+ arch : [x86, aarch64]
1773
1773
cann :
1774
1774
- ' 8.1.RC1.alpha001-910b-openeuler22.03-py3.10'
1775
1775
device :
1776
1776
- ' ascend910b3'
1777
1777
build :
1778
1778
- ' Release'
1779
+ runs-on : ${{ matrix.arch == 'aarch64' && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}
1779
1780
container : ascendai/cann:${{ matrix.cann }}
1780
1781
steps :
1781
1782
- name : Checkout
Original file line number Diff line number Diff line change @@ -329,6 +329,7 @@ struct ggml_cann_pool_buf_prio : public ggml_cann_pool {
329
329
* @param size Size of the buffer to free.
330
330
*/
331
331
void free (void * ptr, size_t size) override {
332
+ GGML_UNUSED (size);
332
333
auto it = buffer_pool.find (ptr);
333
334
if (it == buffer_pool.end ()) {
334
335
GGML_ABORT (" cann pool[%d]: buffer %p not found in pool\n " , device, ptr);
@@ -531,6 +532,7 @@ struct ggml_cann_pool_buf : public ggml_cann_pool {
531
532
* @param size Size of the buffer to free.
532
533
*/
533
534
void free (void * ptr, size_t size) override {
535
+ GGML_UNUSED (size);
534
536
for (int i = 0 ; i < MAX_BUFFERS; ++i) {
535
537
ggml_cann_buffer& b = buffer_pool[i];
536
538
if (b.ptr != ptr) {
You can’t perform that action at this time.
0 commit comments