SWDEV-306940 - Fix hipamd errors/warnings found by CppCheck
Change-Id: Ia93d4f5262ea4269d8031edbfd27033b887e5300
이 커밋은 다음에 포함됨:
1 부모
c792ff7bfc
커밋
6e562f4d83
21 파일이 변경됨
+41
-56
검색과 일치하는 파일 없음
@@ -96,7 +96,7 @@ DeviceFunc::~DeviceFunc() {
|
||||
}
|
||||
|
||||
//Abstract functions
|
||||
Function::Function(std::string name, FatBinaryInfo** modules)
|
||||
Function::Function(const std::string& name, FatBinaryInfo** modules)
|
||||
: name_(name), modules_(modules) {
|
||||
dFunc_.resize(g_devices.size());
|
||||
}
|
||||
@@ -167,15 +167,16 @@ hipError_t Function::getStatFuncAttr(hipFuncAttributes* func_attr, int deviceId)
|
||||
}
|
||||
|
||||
//Abstract Vars
|
||||
Var::Var(std::string name, DeviceVarKind dVarKind, size_t size, int type, int norm,
|
||||
Var::Var(const std::string& name, DeviceVarKind dVarKind, size_t size, int type, int norm,
|
||||
FatBinaryInfo** modules) : name_(name), dVarKind_(dVarKind), size_(size),
|
||||
type_(type), norm_(norm), modules_(modules) {
|
||||
type_(type), norm_(norm), modules_(modules), managedVarPtr_(nullptr), align_(0) {
|
||||
dVar_.resize(g_devices.size());
|
||||
}
|
||||
|
||||
Var::Var(std::string name, DeviceVarKind dVarKind, void *pointer, size_t size,
|
||||
Var::Var(const std::string& name, DeviceVarKind dVarKind, void *pointer, size_t size,
|
||||
unsigned align, FatBinaryInfo** modules) : name_(name), dVarKind_(dVarKind),
|
||||
size_(size), modules_(modules), managedVarPtr_(pointer), align_(align) {
|
||||
size_(size), modules_(modules), managedVarPtr_(pointer), align_(align),
|
||||
type_(0), norm_(0) {
|
||||
dVar_.resize(g_devices.size());
|
||||
}
|
||||
|
||||
|
||||
새 이슈에서 참조
사용자 차단