Skip to content

Commit

Permalink
review updates and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
upsj committed Jul 5, 2024
1 parent 0886d22 commit b59f135
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ cudamemcheck:
- .before_script_template
- .default_variables
- .deploy_condition
image: use_gko-cuda110-mvapich2-gnu9-llvm9-intel2020
image: ginkgohub/cuda:110-mvapich2-gnu9-llvm9-intel2020
tags:
- private_ci
- nvidia-gpu
Expand Down
7 changes: 0 additions & 7 deletions core/log/profiler_hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,13 +431,6 @@ profiling_scope_guard::~profiling_scope_guard()
}
}

profiling_scope_guard::profiling_scope_guard(profiling_scope_guard&& other)
: empty_{std::exchange(other.empty_, true)},
name_{std::exchange(other.name_, nullptr)},
category_{other.category_},
end_{std::move(other.end_)}
{}


} // namespace log
} // namespace gko
5 changes: 2 additions & 3 deletions core/log/profiler_hook.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
#define GKO_CORE_LOG_PROFILER_HOOK_HPP_


#include <ginkgo/core/log/profiler_hook.hpp>


#include <optional>

#include <ginkgo/core/log/profiler_hook.hpp>


namespace gko {
namespace log {
Expand Down
5 changes: 4 additions & 1 deletion include/ginkgo/core/base/std_extensions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ using void_t = std::void_t<Ts...>;


GKO_DEPRECATED("use std::uncaught_exceptions")
inline bool uncaught_exception() noexcept { return std::uncaught_exception(); }
inline bool uncaught_exception() noexcept
{
return std::uncaught_exceptions() > 0;
}


// Kept for backward compatibility.
Expand Down
3 changes: 1 addition & 2 deletions include/ginkgo/core/log/profiler_hook.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,7 @@ class profiling_scope_guard {

profiling_scope_guard(const profiling_scope_guard&) = delete;

/** Move-constructs from another scope guard, other will be left empty. */
profiling_scope_guard(profiling_scope_guard&& other);
profiling_scope_guard(profiling_scope_guard&& other) = delete;

profiling_scope_guard& operator=(const profiling_scope_guard&) = delete;

Expand Down
1 change: 0 additions & 1 deletion include/ginkgo/core/solver/solver_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include <type_traits>


#include <ginkgo/core/stop/criterion.hpp>


Expand Down

0 comments on commit b59f135

Please sign in to comment.