Skip to content

Commit

Permalink
Fixed compilation warning and typo
Browse files Browse the repository at this point in the history
* Avoid warning about format %p expecting void-pointer.
* Fixed typo (DBCSR_ABORT message).
  • Loading branch information
hfp committed Apr 17, 2024
1 parent 708e8f9 commit 4cdb2dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/acc/cuda_hip/acc_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ extern "C" int c_dbcsr_acc_stream_create(void** stream_p, const char* name, int
cErr = ACC(StreamCreate)(acc_stream);
}

if (verbose_print) printf("StreamCreate : %p -> %p \n", *stream_p, *acc_stream);
if (verbose_print) printf("StreamCreate : %p -> %p \n", *stream_p, (const void*)*acc_stream);
if (acc_error_check(cErr)) return -1;
if (acc_error_check(ACC(GetLastError)())) return -1;

Expand Down
2 changes: 1 addition & 1 deletion src/core/dbcsr_lib.F
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ SUBROUTINE dbcsr_init_lib_pre(mp_comm, io_unit, accdrv_active_device_id)
! Use round-robin assignment per rank
CALL set_accdrv_active_device_id(MOD(mynode, dbcsr_acc_get_ndevices()))
ELSE
DBCSR_ABORT("dbcsr_init_lib: No recongnized GPU devices")
DBCSR_ABORT("dbcsr_init_lib: No recognized GPU devices")
END IF
CALL acc_init()
END IF
Expand Down

0 comments on commit 4cdb2dc

Please sign in to comment.