Guard new includes.

这个提交包含在:
Alex Voicu 于 2018-10-18 12:29:27 +01:00 提交
1 父节点 b76b5bb1b0
当前提交 e7270853cc
4 个文件已更改
+22 -5

没有与搜索条件相匹配的文件

+7 -2
查看文件
@@ -26,8 +26,13 @@ THE SOFTWARE.
// which can only be used on the device. The programmer has full control
// over when data is copied.
#include <hc/hc.hpp>
#include <hc/hc_am.hpp>
#if defined(HC_NEXT)
#include <hc/hc.hpp>
#include <hc/hc_am.hpp>
#else
#include <hc.hpp>
#include <hc_am.hpp>
#endif
int main(int argc, char* argv[]) {
int sizeElements = 1000000;
@@ -27,7 +27,11 @@ THE SOFTWARE.
// automatic data management capabilities - instead the programmer
// takes the reins and controls when copies are executed.
#include <hc/hc.hpp>
#if defined(HC_NEXT)
#include <hc/hc.hpp>
#else
#include <hc.hpp>
#endif
int main(int argc, char* argv[]) {
int sizeElements = 1000000;
@@ -20,7 +20,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#include <hc/hc.hpp>
#if defined(HC_NEXT)
#include <hc/hc.hpp>
#else
#include <hc.hpp>
#endif
int main(int argc, char *argv[])
{
@@ -33,7 +33,11 @@ THE SOFTWARE.
// implicit data transfer is used - really the only difference is the namespace.
// Other examples show some of the more advanced controls.
#include <hc/hc.hpp>
#if defined(HC_NEXT)
#include <hc/hc.hpp>
#else
#include <hc.hpp>
#endif
int main(int argc, char* argv[]) {
int sizeElements = 1000000;