OpenCL, C++: Unexpected Results of simple sum float vector program
问题 It is simple program that read two float4 vectors from files then calculate sum of opposite numbers. The Result of it were not expected!! The main File: #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <iostream> #include <iomanip> #include <array> #include <fstream> #include <sstream> #include <string> #include <algorithm> #include <iterator> #ifdef __APPLE__ #include <OpenCL/opencl.h> #else #include <CL/cl.h> #include <time.h> #endif const int number_of_points = 16; //