예제 #1
0
    void copy_to_device(int kmax, Scalar x[])
    {
        // Initialize x vector on host
        for (int j = 0; j < kmax; ++j) {
          hostVector( j ) = x[j];
        }

        //Deep copy host view to device views
        Kokkos::deep_copy(vector, hostVector);
    }
예제 #2
0
 double & host_get(size_t i) const
 {
     return hostVector(i);
 }