Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
ffc43863
Commit
ffc43863
authored
Jan 29, 2021
by
Alessio Netti
Browse files
Fixing various warnings
parent
23d04c54
Changes
3
Hide whitespace changes
Inline
Side-by-side
analytics/operators/coolingcontrol/SNMPController.cpp
View file @
ffc43863
...
...
@@ -29,7 +29,7 @@
void
SNMPController
::
set
(
const
oid
*
const
OID
,
size_t
OIDLen
,
unsigned
char
type
,
const
void
*
const
val
,
size_t
valLen
)
{
struct
snmp_pdu
*
pdu
,
*
response
;
struct
variable_list
*
vp
,
*
vpIn
;
struct
variable_list
*
vp
;
int
status
;
if
(
!
_snmpSessp
)
{
...
...
@@ -37,7 +37,7 @@ void SNMPController::set(const oid *const OID, size_t OIDLen, unsigned char type
}
pdu
=
snmp_pdu_create
(
SNMP_MSG_SET
);
vpIn
=
snmp_pdu_add_variable
(
pdu
,
OID
,
OIDLen
,
type
,
val
,
valLen
);
snmp_pdu_add_variable
(
pdu
,
OID
,
OIDLen
,
type
,
val
,
valLen
);
status
=
snmp_sess_synch_response
(
_snmpSessp
,
pdu
,
&
response
);
...
...
dcdbpusher/sensors/nvml/nvmlSensorGroup.cpp
View file @
ffc43863
...
...
@@ -80,22 +80,18 @@ void nvmlSensorGroup::execOnInit() {
}
bool
nvmlSensorGroup
::
execOnStart
()
{
cudaError_t
cerr
;
cerr
=
cudaProfilerStart
();
cudaProfilerStart
();
return
true
;
}
void
nvmlSensorGroup
::
execOnStop
()
{
cudaError_t
cerr
;
cerr
=
cudaProfilerStop
();
cudaProfilerStop
();
}
void
nvmlSensorGroup
::
read
()
{
reading_t
reading
;
reading
.
timestamp
=
getTimestamp
();
reading
.
value
=
0
;
nvmlReturn_t
err
;
unsigned
long
long
temp
;
try
{
...
...
@@ -174,7 +170,11 @@ void nvmlSensorGroup::read() {
reading
.
value
=
counters
.
procs_cnt
;
break
;
}
s
->
storeReading
(
reading
);
if
(
err
==
NVML_SUCCESS
)
{
s
->
storeReading
(
reading
);
}
else
{
LOG
(
error
)
<<
"Sensorgroup"
<<
_groupName
<<
" could not read "
<<
s
->
getName
()
<<
": NVML error!"
;
}
#ifdef DEBUG
LOG
(
debug
)
<<
_groupName
<<
"::"
<<
s
->
getName
()
<<
" raw reading:
\"
"
<<
reading
.
value
<<
"
\"
"
;
#endif
...
...
tools/dcdbslurmjob/dcdbslurmjob.cpp
View file @
ffc43863
...
...
@@ -263,7 +263,6 @@ int main(int argc, char** argv) {
std
::
string
domainId
=
JOB_DEFAULT_DOMAIN
;
std
::
string
substitution
=
""
;
int
maxJobLength
=
-
1
;
int
timeout
=
10
;
uint64_t
ts
=
0
;
// Defining options
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment