2019-08-26から1日間の記事一覧

なが月・25日目

25日目 午前 並列プログラミング入門、今日はreductionを実際に書いて確かめた。 #include <bits/stdc++.h> #include <omp.h> int main() { std::vector<int> a = {1, 2, 3, 4, 5, 6, 7, 8}; std::vector<int> b = {1, 2, 3, 4, 5, 6, 7, 8}; int dotProduct = 0; // 1 + 4 + 9 + 16 + 25 + 3</int></int></omp.h></bits/stdc++.h>…