Skip to content

Commit 7ac340a

Browse files
committed
Update annotations
1 parent e8e86f6 commit 7ac340a

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

source/source_base/kernels/dsp/dsp_connector.cpp

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ void dspDestoryHandle(int id)
2222
{
2323
hthread_dev_close(id);
2424
std::cout << " ** DSP closed on cluster " << id << " **" << std::endl;
25-
} // Close dsp cluster at the end
25+
} // Close dsp cluster at the end of the program
2626

27-
// MTBlas secretly removed its MTBLAS_TRANSPOSE data type and used the original CBLAS_TRANSPOSE
27+
// MTBlas secretly removed its MTBLAS_TRANSPOSE data type and used the original CBLAS_TRANSPOSE. So this function is modified.
2828

2929
CBLAS_TRANSPOSE convertBLASTranspose(const char* blasTrans)
3030
{
@@ -43,26 +43,21 @@ CBLAS_TRANSPOSE convertBLASTranspose(const char* blasTrans)
4343
std::cout << "Invalid BLAS transpose parameter!! Use default instead." << std::endl;
4444
return CblasNoTrans;
4545
}
46-
} // Used to convert normal transpost char to mtblas transpose flag
46+
} // Used to convert normal transpost char to cblas transpose flag
4747

4848
void* malloc_ht(size_t bytes, int cluster_id)
4949
{
50-
// std::cout << "MALLOC " << cluster_id;
5150
void* ptr = hthread_malloc((int)cluster_id, bytes, HT_MEM_RW);
52-
// std::cout << ptr << " SUCCEED" << std::endl;;
5351
return ptr;
54-
}
52+
} // Malloc on dsp. Used to replace original malloc
53+
5554

56-
// Used to replace original malloc
5755

5856
void free_ht(void* ptr)
5957
{
60-
// std::cout << "FREE " << ptr;
6158
hthread_free(ptr);
62-
// std::cout << " FREE SUCCEED" << std::endl;
63-
}
59+
} // Free on dsp. Used to replace original free
6460

65-
// Used to replace original free
6661

6762
void sgemm_mt_(const char* transa,
6863
const char* transb,

0 commit comments

Comments
 (0)