Quantcast
Channel: Intel® C++-Compiler
Viewing all articles
Browse latest Browse all 1665

Diagnostic 3180: unrecognized OpenMP #pragma

$
0
0

The test code below worked with Intel Composer 2013 but not with SP1 Update 5,
and gives me "Diagnostic 3180: unrecognized OpenMP #pragma".
Thanks in advance.]

// OpenMPTest.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <map>
#include <omp.h>

int _tmain(int argc, _TCHAR* argv[])
{
	std::map<int, int> box;
	box[0] = 0;
	box[1] = 0;
	box[2] = 0;

#pragma omp parallel for
	for (auto iter = box.begin(); iter != box.end(); ++iter) {
		(*iter).second = rand();
	}
	return 0;
}

 


Viewing all articles
Browse latest Browse all 1665

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>