Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed check for a VOL's async compatibility (#3164) #3224

Merged
merged 1 commit into from
Jul 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions fortran/testpar/async.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,7 @@ PROGRAM async_test
IF(.NOT.registered)THEN
! No VOL found registered
async_enabled = .FALSE.
IF(mpi_rank==0) WRITE(*,'(A,/)') "NATIVE"
IF(mpi_rank==0) WRITE(*,'(A)') "NATIVE"
ELSE
! (2) Check if the VOL is async compatible
CALL h5pcreate_f(H5P_FILE_ACCESS_F, plist_id, hdferror)
Expand All @@ -1338,12 +1338,12 @@ PROGRAM async_test
CALL check("h5pget_vol_cap_flags_f", hdferror, total_error)
CALL h5pclose_f(plist_id, hdferror)
CALL check("h5pcreate_f", hdferror, total_error)
IF(H5VL_CAP_FLAG_ASYNC_F.EQ.1_C_INT64_T) async_enabled = .TRUE.
IF(IAND(cap_flags,H5VL_CAP_FLAG_ASYNC_F).EQ.0_C_INT64_T) async_enabled = .FALSE.
IF(async_enabled .EQV. .FALSE.)THEN
! No async compatible VOL found
IF(mpi_rank==0) WRITE(*,'(A,/)') "NATIVE"
IF(mpi_rank==0) WRITE(*,'(A)') "NATIVE"
ELSE
IF(mpi_rank==0) WRITE(*,'(A,/)') TRIM(vol_connector_name)
IF(mpi_rank==0) WRITE(*,'(A)') TRIM(vol_connector_name)
CALL H5Vlregister_connector_by_name_f(TRIM(vol_connector_name), vol_id, hdferror)
CALL check("H5Vlregister_connector_by_name_f", hdferror, total_error)
ENDIF
Expand All @@ -1359,6 +1359,8 @@ PROGRAM async_test
ENDIF
ENDIF

IF(mpi_rank==0) WRITE(*,'(A,L1,/)') "VOL SUPPORTS ASYNC OPERATIONS: ", async_enabled

! H5ES API TESTING
ret_total_error = 0
CALL H5ES_tests(cleanup, ret_total_error)
Expand Down