Skip to content

Commit c9ade4d

Browse files
committed
fix format and rebase dev
1 parent bac08e9 commit c9ade4d

File tree

14 files changed

+12
-143
lines changed

14 files changed

+12
-143
lines changed

include/data_type.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,4 @@ const static struct DataLayout
4646
F64 = {1, 1, 8, 52, 11};
4747
// clang-format on
4848

49-
DT get_F16();
50-
51-
DT get_U32();
52-
53-
DT get_F32();
54-
55-
DT get_U64();
56-
5749
#endif// __DATA_TYPE_H__

operatorspy/tests/random_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def test(lib, handle, torch_device, voc, random_val, topp, topk, temperature, x_
9494
if(torch_device == 'maca'):
9595
indices = torch.zeros([1], dtype = torch.int64).to('cuda')
9696
else:
97-
indices = torch.zeros([1], dtype = torch.uint64).to(torch_device)
97+
indices = torch.zeros([1], dtype = torch.int64).to(torch_device)
9898
x_tensor = to_tensor(data, lib)
9999
indices_tensor = to_tensor(indices, lib)
100100
indices_tensor.descriptor.contents.dt = U64 # treat int64 as uint64

operatorspy/tests/rotary_embedding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,4 +245,4 @@ def test_musa(lib, test_cases) :
245245
test_musa(lib, test_cases)
246246
if not (args.cpu or args.cuda or args.bang or args.ascend or args.maca or args.musa):
247247
test_cpu(lib, test_cases)
248-
print("\033[92mTest passed!\033[0m")
248+
print("\033[92mTest passed!\033[0m")

src/devices/musa/common_musa.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ inline __device__ uint64_t getOffset(uint64_t flat_index, uint64_t ndim, uint64_
7474
return res;
7575
}
7676

77-
#endif // __COMMON_MUSA_H__
77+
#endif // __COMMON_MUSA_H__

src/devices/musa/musa_handle.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ infiniopStatus_t createMusaHandle(MusaHandle_t* handle_ptr, int device_id) {
1616
return STATUS_BAD_DEVICE;
1717
}
1818

19-
// set CUDA device property
19+
// set MUSA device property
2020
musaDeviceProp prop;
2121
musaGetDeviceProperties(&prop, device_id);
2222

@@ -54,4 +54,4 @@ infiniopStatus_t deleteMusaHandle(MusaHandle_t handle_ptr) {
5454
delete handle_ptr;
5555

5656
return STATUS_SUCCESS;
57-
}
57+
}

src/devices/musa/musa_handle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ void use_mudnn(std::shared_ptr<Pool<musa::dnn::Handle>> mudnn_handles_t, int dev
6161
mudnn_handles_t->push(handle);
6262
}
6363

64-
#endif // __MUSA_HANDLE_H__
64+
#endif // __MUSA_HANDLE_H__

src/devices/musa/pool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ class Pool {
4747
mutable std::atomic<Node<T> *> _head;
4848
};
4949

50-
#endif // __POOL_MUSA_H__
50+
#endif // __POOL_MUSA_H__

src/devices/musa/tensor_desc.cc

Lines changed: 0 additions & 81 deletions
This file was deleted.

src/devices/musa/tensor_desc.h

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/ops/causal_softmax/musa/causal_softmax_musa.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,4 @@ infiniopStatus_t musaCausalSoftmax(CausalSoftmaxMusaDescriptor_t desc,
3232
void *stream);
3333

3434
infiniopStatus_t musaDestroyCausalSoftmaxDescriptor(CausalSoftmaxMusaDescriptor_t desc);
35-
36-
#endif
35+
#endif

0 commit comments

Comments
 (0)