Skip to content

Commit

Permalink
Fix issue with && inside CHECK
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Nov 21, 2024
1 parent f74b987 commit 3597f6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cudax/test/memory_resource/pinned_memory_resource.cu
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ static void ensure_pinned_ptr(void* ptr)
cudaPointerAttributes attributes;
cudaError_t status = cudaPointerGetAttributes(&attributes, ptr);
CHECK(status == cudaSuccess);
CHECK((attributes.type == cudaMemoryTypeHost) && (attributes.devicePointer != nullptr));
CHECK(attributes.type == cudaMemoryTypeHost);
CHECK(attributes.devicePointer != nullptr);
}

TEST_CASE("pinned_memory_resource construction", "[memory_resource]")
Expand Down

0 comments on commit 3597f6b

Please sign in to comment.