Skip to content

Commit

Permalink
Better message
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Sep 22, 2024
1 parent a1bed56 commit d8d52fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/amrexpr_Gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ void init_sycl (sycl::device& d, sycl::context& c, sycl::queue& q)
sycl::device* getSyclDevice ()
{
AMREXPR_ALWAYS_ASSERT_WITH_MESSAGE(sycl_device,
"init_sycl must be called to initialize"
"amrexpr::Gpu::init_sycl must be called to initialize"
"SYCL Device for SYCL backend");
return sycl_device;
}

sycl::context* getSyclContext ()
{
AMREXPR_ALWAYS_ASSERT_WITH_MESSAGE(sycl_context,
"init_sycl must be called to initialize"
"amrexpr::Gpu::init_sycl must be called to initialize"
"SYCL Context for SYCL backend");
return sycl_context;
}
Expand Down

0 comments on commit d8d52fc

Please sign in to comment.