monolish
0.14.0
MONOlithic LIner equation Solvers for Highly-parallel architecture
|
Go to the documentation of this file. 1 #include "../../../include/monolish_blas.hpp"
2 #include "../../internal/monolish_internal.hpp"
13 const T *d = val.data();
14 const size_t N = val.size();
16 if (gpu_status ==
true) {
17 #pragma omp target update to(d [0:N])
19 #pragma omp target enter data map(to : d [0:N])
32 if (gpu_status ==
true) {
34 const size_t N = val.size();
36 #pragma omp target exit data map(from : d [0:N])
50 if (gpu_status ==
true) {
52 const size_t N = val.size();
53 #pragma omp target update from(d [0:N])
65 if (gpu_status ==
true) {
66 const T *d = val.data();
67 const size_t N = val.size();
68 #pragma omp target exit data map(release : d [0:N])
94 const T *vald = val.data();
95 const int *cold = col_ind.data();
96 const int *rowd = row_ptr.data();
97 const size_t N = get_row();
98 const size_t nnz = get_nnz();
100 if (gpu_status ==
true) {
101 #pragma omp target update to(vald [0:nnz], cold [0:nnz], rowd [0:N + 1])
103 #pragma omp target enter data map(to \
105 vald [0:nnz], cold [0:nnz], rowd [0:N + 1])
118 if (gpu_status ==
true) {
119 T *vald = val.data();
120 int *cold = col_ind.data();
121 int *rowd = row_ptr.data();
122 size_t N = get_row();
123 size_t nnz = get_nnz();
125 #pragma omp target exit data map(from \
126 : vald [0:nnz], cold [0:nnz], rowd [0:N + 1])
139 if (gpu_status ==
true) {
140 T *vald = val.data();
141 int *cold = col_ind.data();
142 int *rowd = row_ptr.data();
143 size_t N = get_row();
144 size_t nnz = get_nnz();
146 #pragma omp target update from(vald [0:nnz], cold [0:nnz], rowd [0:N + 1])
158 if (gpu_status ==
true) {
159 const T *vald = val.data();
160 const int *cold = col_ind.data();
161 const int *rowd = row_ptr.data();
162 const size_t N = get_row();
163 const size_t nnz = get_nnz();
165 #pragma omp target exit data map(release \
166 : vald [0:nnz], cold [0:nnz], rowd [0:N + 1])
191 const T *vald = val.data();
192 const size_t nnz = get_nnz();
194 if (gpu_status ==
true) {
195 #pragma omp target update to(vald [0:nnz])
197 #pragma omp target enter data map(to : vald [0:nnz])
210 if (gpu_status ==
true) {
211 T *vald = val.data();
212 size_t nnz = get_nnz();
214 #pragma omp target exit data map(from : vald [0:nnz])
227 if (gpu_status ==
true) {
228 T *vald = val.data();
229 size_t nnz = get_nnz();
231 #pragma omp target update from(vald [0:nnz])
243 if (gpu_status ==
true) {
244 const T *vald = val.data();
245 const size_t nnz = get_nnz();
247 #pragma omp target exit data map(release : vald [0:nnz])
void nonfree_recv()
recv. data to GPU (w/o free)
logger class (singleton, for developper class)
void nonfree_recv()
recv. data to GPU (w/o free)
void util_in(const std::string func_name)
void nonfree_recv()
recv data from GPU (w/o free)
void recv()
recv. data to GPU, and free data on GPU
void device_free() const
free data on GPU
void recv()
recv. data to GPU, and free data on GPU
void device_free() const
free data on GPU
void send() const
send data to GPU
void send() const
send data to GPU
static Logger & get_instance()
void recv()
recv data from GPU, and free data on GPU
void device_free() const
free data on GPU
void send() const
send data to GPU