We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
最近在阅读介绍及代码,有时会注意到一些需要修复的问题。 考虑到为每个问题开 issue 可能导致刷屏,这里单独使用一个 issue 记录阅读该仓库时发现的问题。
备注:下列建议将使用不同修饰词,其中“考虑”指低优先级的建议,“应该”则是期望慎重考虑的建议。
相关 PR:
deeplink.framework/dipu/README.md
Lines 20 to 33 in 8dac466
deeplink.framework/dipu/Contributors.md
Lines 93 to 96 in 8dac466
commitlint
Line 143 in 8dac466
./QuickStart.md
Lines 96 to 100 in 3ac9fdd
communicatorimpl.cpp
communiatorimpl.cpp
c
deeplink.framework/dipu/QuickStart.md
Line 281 in 8dac466
main
master
Lines 63 to 75 in 8dac466
Lines 119 to 129 in 8dac466
Contributors.md
参考 #479
.clang-format
deeplink.framework/dipu/torch_dipu/csrc_dipu/utils/Log.h
Line 11 in 8dac466
deeplink.framework/dipu/torch_dipu/csrc_dipu/aten/RegisterDIPU.cpp
Line 69 in 8dac466
Line 77 in 8dac466
deeplink.framework/dipu/torch_dipu/csrc_dipu/profiler/collection.cpp
Line 574 in 8dac466
std::regex
Line 46 in 8dac466
std::string
empty()
Line 37 in 8dac466
Line 43 in 8dac466
nullptr
deeplink.framework/dipu/torch_dipu/csrc_dipu/diopirt/diopirt_impl.cpp
Lines 24 to 27 in 8dac466
private
delete
deeplink.framework/dipu/torch_dipu/csrc_dipu/profiler/CorrelationIDManager.h
Lines 23 to 25 in 8dac466
dipu/torch_dipu/csrc_dipu/runtime/core/allocator /DIPUCachingAllocator.h
DIPUCacheAllocator.h
class
CacheAllocator
deeplink.framework/dipu/torch_dipu/csrc_dipu/runtime/core/allocator/DIPUCachingAllocator.h
Line 69 in 22457dd
deque
deeplink.framework/dipu/torch_dipu/csrc_dipu/runtime/core/allocator/DIPUAsyncResourcePool.h
Line 36 in 8dac466
deeplink.framework/dipu/torch_dipu/csrc_dipu/runtime/core/allocator/DIPUSpinMutex.h
Lines 9 to 37 in 8dac466
std::atomic_flag
std::atomic<bool>
deeplink.framework/dipu/torch_dipu/csrc_dipu/base/DIPUGlobals.cpp
Lines 22 to 26 in 8dac466
Lines 35 to 39 in 8dac466
Lines 15 to 22 in 8dac466
DIPU_RAW_ALLOCATOR_MIN_ALLOCATE_SIZE
allocateSize
deeplink.framework/dipu/torch_dipu/csrc_dipu/runtime/core/allocator/DIPURawCachingAllocator.cpp
Lines 37 to 46 in 8dac466
kMinAllocationSize = 10
nbytes = 21
30
To be continued.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
最近在阅读介绍及代码,有时会注意到一些需要修复的问题。
考虑到为每个问题开 issue 可能导致刷屏,这里单独使用一个 issue 记录阅读该仓库时发现的问题。
文档
相关 PR:
文档风格及 Lint 相关
deeplink.framework/dipu/README.md
Lines 20 to 33 in 8dac466
deeplink.framework/dipu/Contributors.md
Lines 93 to 96 in 8dac466
commitlint
)deeplink.framework/dipu/Contributors.md
Line 143 in 8dac466
文档错误相关
./QuickStart.md
) 而非绝对路径,目前全部分支的下列链接都指向 404 页面:deeplink.framework/dipu/README.md
Lines 96 to 100 in 3ac9fdd
communicatorimpl.cpp
而非communiatorimpl.cpp
(漏掉了c
)deeplink.framework/dipu/QuickStart.md
Line 281 in 8dac466
main
分支而非master
:deeplink.framework/dipu/Contributors.md
Lines 63 to 75 in 8dac466
deeplink.framework/dipu/Contributors.md
Lines 119 to 129 in 8dac466
文档其它事项
Contributors.md
加入关于 GitHub flow 相关介绍代码
CMake 脚本相关
参考 #479
代码风格相关
.clang-format
等方式自动格式化 cpp 代码,确保代码风格一致deeplink.framework/dipu/torch_dipu/csrc_dipu/utils/Log.h
Line 11 in 8dac466
deeplink.framework/dipu/torch_dipu/csrc_dipu/aten/RegisterDIPU.cpp
Line 69 in 8dac466
deeplink.framework/dipu/torch_dipu/csrc_dipu/aten/RegisterDIPU.cpp
Line 77 in 8dac466
deeplink.framework/dipu/torch_dipu/csrc_dipu/profiler/collection.cpp
Line 574 in 8dac466
std::regex
将会抛异常,考虑增加健壮性deeplink.framework/dipu/torch_dipu/csrc_dipu/aten/RegisterDIPU.cpp
Line 46 in 8dac466
std::string
的empty()
方法增加可读性deeplink.framework/dipu/torch_dipu/csrc_dipu/aten/RegisterDIPU.cpp
Line 37 in 8dac466
deeplink.framework/dipu/torch_dipu/csrc_dipu/aten/RegisterDIPU.cpp
Line 43 in 8dac466
nullptr
的时候返回错误deeplink.framework/dipu/torch_dipu/csrc_dipu/diopirt/diopirt_impl.cpp
Lines 24 to 27 in 8dac466
private
或者设置为delete
deeplink.framework/dipu/torch_dipu/csrc_dipu/profiler/CorrelationIDManager.h
Lines 23 to 25 in 8dac466
dipu/torch_dipu/csrc_dipu/runtime/core/allocator /DIPUCachingAllocator.h
名称修改为DIPUCacheAllocator.h
毕竟class
叫做CacheAllocator
deeplink.framework/dipu/torch_dipu/csrc_dipu/runtime/core/allocator/DIPUCachingAllocator.h
Line 69 in 22457dd
deque
是否为空deeplink.framework/dipu/torch_dipu/csrc_dipu/runtime/core/allocator/DIPUAsyncResourcePool.h
Line 36 in 8dac466
deeplink.framework/dipu/torch_dipu/csrc_dipu/runtime/core/allocator/DIPUSpinMutex.h
Lines 9 to 37 in 8dac466
std::atomic_flag
而不是std::atomic<bool>
代码错误相关
deeplink.framework/dipu/torch_dipu/csrc_dipu/base/DIPUGlobals.cpp
Lines 22 to 26 in 8dac466
deeplink.framework/dipu/torch_dipu/csrc_dipu/base/DIPUGlobals.cpp
Lines 35 to 39 in 8dac466
deeplink.framework/dipu/torch_dipu/csrc_dipu/diopirt/diopirt_impl.cpp
Lines 15 to 22 in 8dac466
DIPU_RAW_ALLOCATOR_MIN_ALLOCATE_SIZE
为 0 那么allocateSize
将一直为 0,应该加入一些检查避免这种情况deeplink.framework/dipu/torch_dipu/csrc_dipu/runtime/core/allocator/DIPURawCachingAllocator.cpp
Lines 37 to 46 in 8dac466
kMinAllocationSize = 10
nbytes = 21
时,allocateSize
为30
(参考这段测试)?除此之外,这里的分配器是否应该考虑内存对齐?To be continued.
The text was updated successfully, but these errors were encountered: