Correct usage of bitwise &

Also, fix warning related to catch() and cpplint error.

Change-Id: I4292170538d0f700fccb605814c5058543abe74a
This commit is contained in:
Chris Freehill
2020-07-26 20:08:24 -05:00
orang tua d325613220
melakukan c2439d28e8
4 mengubah file dengan 4 tambahan dan 4 penghapusan
+1 -1
Melihat File
@@ -237,7 +237,7 @@ typedef enum {
* <br>
* Throughput = BEATS/time_running * 10<sup>9</sup> (bytes/second)<br>
*/
// ie, Throughput = BEATS/time_running 10^9 bytes/sec
// ie, Throughput = BEATS/time_running 10^9 bytes/sec
RSMI_EVNT_XGMI_0_BEATS_TX,
RSMI_EVNT_XGMI_1_NOP_TX, //!< NOPs sent to neighbor 1
RSMI_EVNT_XGMI_1_REQUEST_TX, //!< Outgoing requests to
+1 -1
Melihat File
@@ -79,7 +79,7 @@
#define DEVICE_MUTEX \
amd::smi::pthread_wrap _pw(*amd::smi::GetMutex(dv_ind)); \
amd::smi::RocmSMI& smi_ = amd::smi::RocmSMI::getInstance(); \
bool blocking_ = !(smi_.init_options() && \
bool blocking_ = !(smi_.init_options() & \
static_cast<uint64_t>(RSMI_INIT_FLAG_RESRV_TEST1)); \
amd::smi::ScopedPthread _lock(_pw, blocking_); \
if (!blocking_ && _lock.mutex_not_acquired()) { \