From c13a4200913c04627e38d6423586fcfd1efe7345 Mon Sep 17 00:00:00 2001 From: Marcel Breyer Date: Tue, 29 Oct 2024 09:58:15 +0100 Subject: [PATCH] Fix compilation error. --- .../Kokkos/kernel/cg_explicit/kernel_matrix_assembly.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/plssvm/backends/Kokkos/kernel/cg_explicit/kernel_matrix_assembly.hpp b/include/plssvm/backends/Kokkos/kernel/cg_explicit/kernel_matrix_assembly.hpp index b3d46112d..8e42e8b41 100644 --- a/include/plssvm/backends/Kokkos/kernel/cg_explicit/kernel_matrix_assembly.hpp +++ b/include/plssvm/backends/Kokkos/kernel/cg_explicit/kernel_matrix_assembly.hpp @@ -151,7 +151,7 @@ class device_kernel_assembly { temp_ij += cost_; } // update the kernel matrix - kernel_matrix_d_[device_global_j * (num_rows_ - row_offset_ + PADDING_SIZE_sz) - device_global_j * (device_global_j + std::size_t{ 1 }) / std::size_t{ 2 }; + device_global_i] = temp_ij; + kernel_matrix_d_[device_global_j * (num_rows_ - row_offset_ + PADDING_SIZE_sz) - device_global_j * (device_global_j + std::size_t{ 1 }) / std::size_t{ 2 } + device_global_i] = temp_ij; } } }