openGPMP
Open Source Mathematics Package
modules
linalg
gpu
lao.cpp
Go to the documentation of this file.
1
/*************************************************************************
2
*
3
* Project
4
* __ __ _______ _____ _ __
5
* | \/ |__ __| __ \| |/ /
6
* ___ _ __ ___ _ __ | \ / | | | | |__) | ' /
7
* / _ \| '_ \ / _ \ '_ \| |\/| | | | | ___/| <
8
*| (_) | |_) | __/ | | | | | | | | | | | . \
9
* \___/| .__/ \___|_| |_|_| |_| |_| |_| |_|\_\
10
* | |
11
* |_|
12
*
13
*
14
* Copyright (C) Akiel Aries, <akiel@akiel.org>, et al.
15
*
16
* This software is licensed as described in the file LICENSE, which
17
* you should have received as part of this distribution. The terms
18
* among other details are referenced in the official documentation
19
* seen here : https://akielaries.github.io/openGPMP/ along with
20
* important files seen in this project.
21
*
22
* You may opt to use, copy, modify, merge, publish, distribute
23
* and/or sell copies of the Software, and permit persons to whom
24
* the Software is furnished to do so, under the terms of the
25
* LICENSE file. As this is an Open Source effort, all implementations
26
* must be of the same methodology.
27
*
28
*
29
*
30
* This software is distributed on an AS IS basis, WITHOUT
31
* WARRANTY OF ANY KIND, either express or implied.
32
*
33
************************************************************************/
34
35
/*
36
* taking a look at different mathematical operations seen in Linear
37
* Algebra in C++
38
*
39
* This will be deleted and migrated out of build sys
40
*/
41
#include "../../include/linalg/mtx_tmpl.hpp"
42
#include "../../include/linalg/vectors.hpp"
43
#include <fstream>
44
#include <iostream>
45
#include <stdio.h>
46
#include <string>
47
#include <vector>
48
49
int64_t
gpmp::Vectors::add
(int64_t a, int64_t b) {
50
int64_t c = a + b;
51
return
c;
52
}
add
__global__ void add(int n, float *x, float *y)
Definition:
_gpu_mtx.cu:8
Generated by
1.9.1