g++ -fopenmp main.cpp抱怨未定義的引用爲std::vector。如何解決這個問題? 我在Ubuntu上安裝了libomp-dev軟件包。 的main.cpp #include<vector>
#include<iostream>
template<typename T, typename A>
T recursiveSumBody(std::vector<T, A> &
我正在研究使用Omp的'C'並行編程。在我的模塊陣列求和parallel.c我包括第一,作爲請求,文件hpc.h是在我的C文件相同的文件夾,幷包含以下代碼: /*This header file provides a function double hpc_gettime() that returns the elaps
ed time (in seconds) since "the epoch