Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
upsj committed May 31, 2023
1 parent b78b6c5 commit a99f364
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion core/base/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ void CpuAllocator::deallocate(void* ptr) const
}


} // namespace gko
} // namespace gko
2 changes: 1 addition & 1 deletion core/device_hooks/hip_hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include <ginkgo/core/base/exception_helpers.hpp>
#include <ginkgo/core/base/executor.hpp>
#include <ginkgo/core/base/memory.hpp>
#include <ginkgo/core/base/stream.hpp>
#include <ginkgo/core/base/timer.hpp>
#include <ginkgo/core/base/types.hpp>
#include <ginkgo/core/base/version.hpp>
#include <ginkgo/core/log/profiler_hook.hpp>
#include "ginkgo/core/base/memory.hpp"


namespace gko {
Expand Down
2 changes: 1 addition & 1 deletion core/test/base/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include <thread>
#include <type_traits>
#include "ginkgo/core/base/memory.hpp"


#if defined(__unix__) || defined(__APPLE__)
Expand All @@ -47,6 +46,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


#include <ginkgo/core/base/exception.hpp>
#include <ginkgo/core/base/memory.hpp>


namespace {
Expand Down
4 changes: 1 addition & 3 deletions cuda/base/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
******************************<GINKGO LICENSE>*******************************/

#include "cuda/base/device.hpp"


#include <cuda_runtime.h>


#include <ginkgo/core/base/exception_helpers.hpp>


#include "cuda/base/device.hpp"
#include "cuda/base/scoped_device_id.hpp"


Expand Down
2 changes: 1 addition & 1 deletion cuda/base/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,4 @@ void CudaHostAllocator::deallocate(void* ptr) const
}


} // namespace gko
} // namespace gko
4 changes: 3 additions & 1 deletion cuda/base/nvtx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
******************************<GINKGO LICENSE>*******************************/

#include <cuda_runtime.h>


#include <ginkgo/config.hpp>


#include <cuda_runtime.h>
#ifdef GKO_LEGACY_NVTX
#include <nvToolsExt.h>
#else
Expand Down
4 changes: 3 additions & 1 deletion cuda/base/stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
******************************<GINKGO LICENSE>*******************************/

#include <ginkgo/core/base/stream.hpp>


#include <cuda_runtime.h>


#include <ginkgo/core/base/exception_helpers.hpp>
#include <ginkgo/core/base/stream.hpp>


#include "cuda/base/scoped_device_id.hpp"
Expand Down
1 change: 0 additions & 1 deletion cuda/test/base/cuda_executor.cu
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <ginkgo/core/base/exception_helpers.hpp>
#include <ginkgo/core/base/stream.hpp>


#include "common/cuda_hip/base/executor.hpp.inc"
#include "cuda/base/scoped_device_id.hpp"
#include "cuda/test/utils.hpp"
Expand Down
4 changes: 2 additions & 2 deletions hip/base/device.hip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
******************************<GINKGO LICENSE>*******************************/

#include <ginkgo/core/base/stream.hpp>
#include <ginkgo/core/base/device.hpp>


#include <hip/hip_runtime.h>


#include <ginkgo/config.hpp>
#include <ginkgo/core/base/device.hpp>
#include <ginkgo/core/base/exception_helpers.hpp>
#include <ginkgo/core/base/stream.hpp>


#include "hip/base/scoped_device_id.hip.hpp"
Expand Down
4 changes: 3 additions & 1 deletion hip/base/roctx.hip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
******************************<GINKGO LICENSE>*******************************/

#include <hip/hip_runtime.h>


#include <ginkgo/config.hpp>


#include <hip/hip_runtime.h>
#if GINKGO_HIP_PLATFORM_HCC && GKO_HAVE_ROCTX
#include <roctx.h>
#endif
Expand Down
2 changes: 1 addition & 1 deletion include/ginkgo/core/base/stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@ class hip_stream {
} // namespace gko


#endif // GKO_PUBLIC_CORE_BASE_EXECUTOR_HPP_
#endif // GKO_PUBLIC_CORE_BASE_STREAM_HPP_

0 comments on commit a99f364

Please sign in to comment.