Skip to content

Commit

Permalink
hipstreamsemantics wait 10
Browse files Browse the repository at this point in the history
  • Loading branch information
pvelesko committed Sep 3, 2024
1 parent 1b38713 commit 74dfad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/hipStreamSemantics/hipStreamSemantics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ __global__ void addOne(int *__restrict A) {
void callback_sleep2(hipStream_t stream, hipError_t status, void *user_data) {
int *data = (int *)user_data;
printf("callback_sleep2: Going to sleep for 2sec\n");
sleep(2);
sleep(10);

Check warning on line 45 in samples/hipStreamSemantics/hipStreamSemantics.cc

View workflow job for this annotation

GitHub Actions / cpp-linter

samples/hipStreamSemantics/hipStreamSemantics.cc:45:9 [readability-magic-numbers]

10 is a magic number; consider replacing it with a named constant
*data = 2;
printf("callback_sleep2: Exiting now\n");
}
Expand Down

0 comments on commit 74dfad1

Please sign in to comment.