Skip to content

Commit

Permalink
More CI debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Keluaa committed Jun 26, 2023
1 parent 9ccb8a1 commit 02db81f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kokkos_wrapper/views.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ void register_all_view_combinations(jlcxx::Module& mod, jl_module_t* views_modul
std::string name = RegUtils::build_view_type_name();
jl_value_t* view_type = RegUtils::build_abstract_array_type(views_module);

std::cout << " === Registering '" << name << "'\n";
std::cerr << " === Registering '" << name << "'\n";

// We apply the type and dimension separately: some type problems arise when specifying both through `add_type`,
// irregularities like `View{Float64, 2} <: AbstractArray{Float64, 2} == true` but an instance of a
Expand All @@ -397,7 +397,7 @@ void register_all_view_combinations(jlcxx::Module& mod, jl_module_t* views_modul
// On the C++ side, it is mapped to `TList<Wrapped_t>`, to make it easy to build and work with.
using complete_type = TList<Wrapped_t>;

std::cout << "=> With " << get_type_name<typename Wrapped_t::type>() << ": " << get_type_name<Wrapped_t>() << "\n";
std::cerr << "=> With " << get_type_name<typename Wrapped_t::type>() << ": " << get_type_name<Wrapped_t>() << "\n";

RegUtils::template register_constructor<Wrapped_t, complete_type>(mod, views_module);
RegUtils::register_access_operator(wrapped);
Expand Down
2 changes: 2 additions & 0 deletions src/views.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ const _COMPILED_VIEW_TYPES = Set{Type}()
function compile_view(view_t::Type{<:View}; for_function=nothing, no_error=false)
view_t = main_view_type(view_t)

println(stderr, "`compile_view`: $view_t is compiled = $(view_t in _COMPILED_VIEW_TYPES)")

if view_t in _COMPILED_VIEW_TYPES
# This view type should already be compiled
if no_error
Expand Down

0 comments on commit 02db81f

Please sign in to comment.