![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
云天河用剑当箭
这个作者很懒,什么都没留下…
展开
-
vs2019 使用Pthreads--并行计算
参考:https://blog.csdn.net/lhw_666/article/details/108430647https://blog.csdn.net/weixin_40614261/article/details/89552222下载地址:ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.zip有以下文件:Pre-built.2Pthreads.2QueueUserAPCEx配置要点记录:原创 2020-11-28 22:00:07 · 1301 阅读 · 0 评论 -
vs2019 使用OpenMP--并行计算
要点记录1.调试→xxxx属性,找到 “配置管理器”,选x64;2. 调试→xxxx属性→C/C++→所有选项→OpenMP支持改为是;3. 注意项目添加C/C++文件后出现"C/C++ ";测试程序,判断素数#include <omp.h>#include <iostream>#include <time.h>#include <math.h>#include <stdlib.h>using namespace std;原创 2020-11-28 21:42:05 · 2807 阅读 · 0 评论 -
vs2019 使用MPI--并行计算
并行计算–vs2019 使用MPI参考:https://www.jianshu.com/p/119265e21cdfMPI下载地址地址:http://www.mpich.org/downloads/页面最下方找windows版,点击"http",下载msmpisdk.msi和MSMpiSetup.exe,双击安装(默认路径)。配置要点记录:在“调试”->“xxxxx属性”中设置参数;“配置管理器”,选x64;C/C+±>“预处理器”>“编辑”,添加: MPICH_SK原创 2020-11-28 21:28:22 · 1215 阅读 · 0 评论 -
c++中返回数组函数
c++中返回数组函数演示代码:int * fun1(){ int arr[10]; for(int i=0; i<10; i++) { arr[i]=i; } return arr;}int * fun2(){ int *arr=new int[10]; for(int i=0; i<10; i++)...原创 2019-04-19 10:15:06 · 260 阅读 · 0 评论