Complete first GPU tensors

This commit is contained in:
2025-11-18 00:04:49 +04:00
parent 982ddcb5e0
commit c1874212ae
5 changed files with 83 additions and 26 deletions

View File

@@ -5,9 +5,16 @@
// TODO: GENERIC KERNELS
// TODO: Scalar mult
// TODO: TMult >2
OpenCL openCL;
int main() {
Tensor<float, 2> a = Tensor<float, 2>({2, 4});
std::cout << a.toString();
Tensor<float, 2> a = Tensor<float, 2>({8192, 8192}, 1);
Tensor<float, 2> b = Tensor<float, 2>({8192, 8192}, 1);
auto c = a % b;
Tensor<float, 2> d = Tensor<float, 2>(c);
d += 1;
std::cout << d.toString();
return 0;
}