Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
2a28803
init code
yhmtsai Nov 15, 2019
5bec208
update format_header.sh
yhmtsai Nov 15, 2019
46879d8
reference works
yhmtsai Nov 18, 2019
aeb9598
final
yhmtsai Nov 18, 2019
f9c760e
fix * problem
yhmtsai Nov 18, 2019
98b216b
add some specified rule
yhmtsai Nov 18, 2019
efc2742
try to use config rule
yhmtsai Jan 9, 2020
6a1c8a6
format_header use config_regex
yhmtsai Jan 10, 2020
19009b8
avoid some unexpected behaviour
yhmtsai Jan 10, 2020
a2eaa35
update config
yhmtsai Jan 10, 2020
e0dcca7
keep the same empty lines and fix header def
yhmtsai Jan 12, 2020
fe7ac54
hip/device_functions problem
yhmtsai Jan 13, 2020
731663f
move get_include_regex
yhmtsai Jan 13, 2020
31383a4
add the alarm and handle the newline in #if
yhmtsai Jan 13, 2020
19fc2a0
fix non-self contain
yhmtsai Jan 13, 2020
8bda872
add component _kernels config
yhmtsai Jan 13, 2020
7f195f2
add discription
yhmtsai Jan 13, 2020
8557620
fix the config and rename zero_array and sorting
yhmtsai Jan 15, 2020
95571c6
add force-top
yhmtsai Mar 10, 2020
b5dba65
change the cuda/hip components filename
yhmtsai Mar 10, 2020
aedb6c0
manual fix
yhmtsai Mar 11, 2020
ecbcc7a
ignore the empty line in the beginning
yhmtsai Mar 11, 2020
950bfe9
add format_header and format_header_all in cmake
yhmtsai Mar 12, 2020
f784992
use better condition
yhmtsai Mar 12, 2020
06f9574
reference changes
yhmtsai Mar 12, 2020
ccf3542
include changes
yhmtsai Mar 12, 2020
bdf53c0
omp changes
yhmtsai Mar 12, 2020
43c4e84
cuda changes
yhmtsai Mar 12, 2020
fade352
core changes
yhmtsai Mar 12, 2020
a8c5390
hip changes
yhmtsai Mar 12, 2020
0eaa8cb
others changes
yhmtsai Mar 12, 2020
0f27071
manual fix, format_header on branch modification
yhmtsai Mar 17, 2020
7f3d8ae
separate executor-wide and others, fix MacOS
yhmtsai Mar 26, 2020
7b45b6a
Apply suggestions from code review
yhmtsai Apr 2, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
core changes
  • Loading branch information
yhmtsai committed Mar 28, 2020
commit fade3523d880e6bcb28a4a0fb79c4c339d6fa714
2 changes: 1 addition & 1 deletion core/components/prefix_sum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ GKO_DECLARE_ALL_AS_TEMPLATES;
} // namespace kernels
} // namespace gko

#endif // GKO_CORE_COMPONENTS_PREFIX_SUM_HPP_
#endif // GKO_CORE_COMPONENTS_PREFIX_SUM_HPP_
1 change: 0 additions & 1 deletion core/device_hooks/reference_hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ 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/version.hpp>
Comment thread
pratikvn marked this conversation as resolved.


Expand Down
1 change: 0 additions & 1 deletion core/log/convergence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ 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/log/convergence.hpp>


Expand Down
1 change: 0 additions & 1 deletion core/log/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ 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/log/logger.hpp>


Expand Down
1 change: 0 additions & 1 deletion core/log/papi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ 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/log/papi.hpp>


Expand Down
1 change: 0 additions & 1 deletion core/log/record.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ 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/log/record.hpp>


Expand Down
5 changes: 1 addition & 4 deletions core/log/stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ 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/log/stream.hpp>


Expand All @@ -39,14 +38,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include <ginkgo/core/base/array.hpp>
#include <ginkgo/core/base/lin_op.hpp>
#include <ginkgo/core/base/name_demangling.hpp>
#include <ginkgo/core/matrix/dense.hpp>
#include <ginkgo/core/stop/criterion.hpp>
#include <ginkgo/core/stop/stopping_status.hpp>


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


namespace gko {
namespace log {

Expand Down
10 changes: 5 additions & 5 deletions core/matrix/coo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
******************************<GINKGO LICENSE>*******************************/

#include <ginkgo/core/matrix/coo.hpp>
#include <ginkgo/core/matrix/csr.hpp>


#include <algorithm>
#include <numeric>


#include <ginkgo/core/base/exception_helpers.hpp>
#include <ginkgo/core/base/executor.hpp>
#include <ginkgo/core/base/math.hpp>
#include <ginkgo/core/base/utils.hpp>
#include <ginkgo/core/matrix/csr.hpp>
#include <ginkgo/core/matrix/dense.hpp>


#include "core/matrix/coo_kernels.hpp"


#include <algorithm>
#include <numeric>


namespace gko {
namespace matrix {

Expand Down
2 changes: 1 addition & 1 deletion core/matrix/coo_builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ class CooBuilder {
} // namespace matrix
} // namespace gko

#endif // GKO_CORE_MATRIX_COO_BUILDER_HPP_
#endif // GKO_CORE_MATRIX_COO_BUILDER_HPP_
4 changes: 3 additions & 1 deletion core/matrix/coo_kernels.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define GKO_CORE_MATRIX_COO_KERNELS_HPP_


#include <ginkgo/core/base/types.hpp>
#include <ginkgo/core/matrix/coo.hpp>


#include <ginkgo/core/base/types.hpp>
#include <ginkgo/core/matrix/csr.hpp>
#include <ginkgo/core/matrix/dense.hpp>

Expand Down
2 changes: 1 addition & 1 deletion core/matrix/csr_builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ class CsrBuilder {
} // namespace matrix
} // namespace gko

#endif // GKO_CORE_MATRIX_CSR_BUILDER_HPP_
#endif // GKO_CORE_MATRIX_CSR_BUILDER_HPP_
4 changes: 3 additions & 1 deletion core/matrix/csr_kernels.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define GKO_CORE_MATRIX_CSR_KERNELS_HPP_


#include <ginkgo/core/matrix/csr.hpp>


#include <ginkgo/core/base/array.hpp>
#include <ginkgo/core/base/types.hpp>
#include <ginkgo/core/matrix/coo.hpp>
#include <ginkgo/core/matrix/csr.hpp>
#include <ginkgo/core/matrix/dense.hpp>
#include <ginkgo/core/matrix/ell.hpp>
#include <ginkgo/core/matrix/hybrid.hpp>
Expand Down
6 changes: 3 additions & 3 deletions core/matrix/dense.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <ginkgo/core/matrix/dense.hpp>


#include <algorithm>


#include <ginkgo/core/base/array.hpp>
#include <ginkgo/core/base/exception.hpp>
#include <ginkgo/core/base/exception_helpers.hpp>
Expand All @@ -50,9 +53,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "core/matrix/dense_kernels.hpp"


#include <algorithm>


namespace gko {
namespace matrix {
namespace dense {
Expand Down
4 changes: 3 additions & 1 deletion core/matrix/dense_kernels.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define GKO_CORE_MATRIX_DENSE_KERNELS_HPP_


#include <ginkgo/core/base/types.hpp>
#include <ginkgo/core/matrix/dense.hpp>

Comment thread
pratikvn marked this conversation as resolved.

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


namespace gko {
namespace kernels {

Expand Down
4 changes: 3 additions & 1 deletion core/matrix/ell_kernels.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define GKO_CORE_MATRIX_ELL_KERNELS_HPP_


#include <ginkgo/core/matrix/ell.hpp>


#include <ginkgo/core/matrix/csr.hpp>
#include <ginkgo/core/matrix/dense.hpp>
#include <ginkgo/core/matrix/ell.hpp>


namespace gko {
Expand Down
4 changes: 3 additions & 1 deletion core/matrix/hybrid_kernels.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define GKO_CORE_MATRIX_HYBRID_KERNELS_HPP_


#include <ginkgo/core/matrix/dense.hpp>
#include <ginkgo/core/matrix/hybrid.hpp>


#include <ginkgo/core/matrix/dense.hpp>


namespace gko {
namespace kernels {

Expand Down
6 changes: 3 additions & 3 deletions core/matrix/sellp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <ginkgo/core/matrix/sellp.hpp>


#include <vector>


#include <ginkgo/core/base/exception_helpers.hpp>
#include <ginkgo/core/base/executor.hpp>
#include <ginkgo/core/base/math.hpp>
Expand All @@ -44,9 +47,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "core/matrix/sellp_kernels.hpp"


#include <vector>


namespace gko {
namespace matrix {
namespace sellp {
Expand Down
4 changes: 3 additions & 1 deletion core/matrix/sellp_kernels.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define GKO_CORE_MATRIX_SELLP_KERNELS_HPP_


#include <ginkgo/core/matrix/sellp.hpp>


#include <ginkgo/core/matrix/csr.hpp>
#include <ginkgo/core/matrix/dense.hpp>
#include <ginkgo/core/matrix/sellp.hpp>


namespace gko {
Expand Down
4 changes: 3 additions & 1 deletion core/matrix/sparsity_csr_kernels.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define GKO_CORE_MATRIX_SPARSITY_CSR_KERNELS_HPP_


#include <ginkgo/core/matrix/sparsity_csr.hpp>


#include <ginkgo/core/base/types.hpp>
#include <ginkgo/core/matrix/dense.hpp>
#include <ginkgo/core/matrix/sparsity_csr.hpp>


namespace gko {
Expand Down
4 changes: 3 additions & 1 deletion core/preconditioner/jacobi_kernels.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define GKO_CORE_PRECONDITIONER_JACOBI_KERNELS_HPP_


#include <ginkgo/core/matrix/csr.hpp>
#include <ginkgo/core/preconditioner/jacobi.hpp>


#include <ginkgo/core/matrix/csr.hpp>


namespace gko {
namespace kernels {

Expand Down
2 changes: 1 addition & 1 deletion core/solver/bicg_kernels.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,4 @@ GKO_DECLARE_ALL_AS_TEMPLATES;
} // namespace gko


#endif // GKO_CORE_SOLVER_BICG_KERNELS_HPP
#endif // GKO_CORE_SOLVER_BICG_KERNELS_HPP_
2 changes: 1 addition & 1 deletion core/solver/cg_kernels.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,4 @@ GKO_DECLARE_ALL_AS_TEMPLATES;
} // namespace gko


#endif // GKO_CORE_SOLVER_CG_KERNELS_HPP
#endif // GKO_CORE_SOLVER_CG_KERNELS_HPP_
2 changes: 1 addition & 1 deletion core/solver/cgs_kernels.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ GKO_DECLARE_ALL_AS_TEMPLATES;
} // namespace gko


#endif // GKO_CORE_SOLVER_CGS_KERNELS_HPP
#endif // GKO_CORE_SOLVER_CGS_KERNELS_HPP_
2 changes: 1 addition & 1 deletion core/solver/gmres_kernels.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,4 @@ GKO_DECLARE_ALL_AS_TEMPLATES;
} // namespace gko


#endif // GKO_CORE_SOLVER_GMRES_KERNELS_HPP
#endif // GKO_CORE_SOLVER_GMRES_KERNELS_HPP_
2 changes: 1 addition & 1 deletion core/solver/ir_kernels.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ GKO_DECLARE_ALL_AS_TEMPLATES;
} // namespace gko


#endif // GKO_CORE_SOLVER_IR_KERNELS_HPP
#endif // GKO_CORE_SOLVER_IR_KERNELS_HPP_
6 changes: 4 additions & 2 deletions core/solver/lower_trs_kernels.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define GKO_CORE_SOLVER_LOWER_TRS_KERNELS_HPP_


#include <ginkgo/core/solver/lower_trs.hpp>


#include <memory>


#include <ginkgo/core/base/executor.hpp>
#include <ginkgo/core/matrix/csr.hpp>
#include <ginkgo/core/matrix/dense.hpp>
#include <ginkgo/core/solver/lower_trs.hpp>


namespace gko {
Expand Down Expand Up @@ -128,4 +130,4 @@ GKO_DECLARE_ALL_AS_TEMPLATES;
} // namespace gko


#endif // GKO_CORE_SOLVER_LOWER_TRS_KERNELS_HPP
#endif // GKO_CORE_SOLVER_LOWER_TRS_KERNELS_HPP_
6 changes: 4 additions & 2 deletions core/solver/upper_trs_kernels.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define GKO_CORE_SOLVER_UPPER_TRS_KERNELS_HPP_


#include <ginkgo/core/solver/upper_trs.hpp>


#include <memory>


#include <ginkgo/core/base/executor.hpp>
#include <ginkgo/core/matrix/csr.hpp>
#include <ginkgo/core/matrix/dense.hpp>
#include <ginkgo/core/solver/upper_trs.hpp>


namespace gko {
Expand Down Expand Up @@ -128,4 +130,4 @@ GKO_DECLARE_ALL_AS_TEMPLATES;
} // namespace gko


#endif // GKO_CORE_SOLVER_UPPER_TRS_KERNELS_HPP
#endif // GKO_CORE_SOLVER_UPPER_TRS_KERNELS_HPP_
1 change: 0 additions & 1 deletion core/stop/combined.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ 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/stop/combined.hpp>


Expand Down
1 change: 0 additions & 1 deletion core/stop/criterion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ 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/stop/criterion.hpp>


Expand Down
1 change: 0 additions & 1 deletion core/stop/iteration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ 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/stop/iteration.hpp>


Expand Down
1 change: 0 additions & 1 deletion core/stop/residual_norm_reduction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ 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/stop/residual_norm_reduction.hpp>


Expand Down
1 change: 0 additions & 1 deletion core/stop/time.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ 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/stop/time.hpp>


Expand Down
Loading