ROCm / roctracer

ROCm Tracer Callback/Activity Library for Performance tracing AMD GPUs
https://rocm.docs.amd.com/projects/roctracer/en/latest/
Other
69 stars 30 forks source link

Roc 3.6 #43

Closed eshcherb closed 4 years ago

ghost commented 4 years ago

DeepCode's analysis on #062fe6 found:

Description Example fixes
Converting integer types to pointer types can lead to portability issues and unspecified behavior if the pointer and integer types become of different sizes. Occurrences: :wrench: Example fixes
Consider using a std::lock_guard object instead of locking and locking std::mutex explicitly. std::lock_guard will unlock the mutex once it runs out of scope and is destructed. Occurrences: :wrench: Example fixes
No need to call keys, directly check with the in operator. Occurrences: :wrench: Example fixes

👉 View analysis in DeepCode’s Dashboard | Configure the bot