小编Mal*_*acu的帖子

在Linux中使用Intel编译器icpc编译c ++程序

我已经安装了英特尔编译器英特尔®Parallel Studio XE 2015,并且已经在桌面上编写了简单的hello world程序。

那么我不知道如何运行该cpp文件。

我尝试过

icpc helloworld.cpp
Run Code Online (Sandbox Code Playgroud)

但它说找不到命令。

linux icc

2
推荐指数
1
解决办法
5083
查看次数

使用推力不工作的简单分类

我有一个cuda推力计划

#include <stdio.h>
#include<iostream>
#include <cuda.h>
#include <thrust/sort.h>



// main routine that executes on the host
int main(void)
{
  int *a_h, *a_d;  // Pointer to host & device arrays
  const int N = 10;  // Number of elements in arrays
  size_t size = N * sizeof(int);
  a_h = (int *)malloc(size);        // Allocate array on host
  cudaMalloc((void **) &a_d, size);// Allocate array on device
  std::cout<<"enter the 10 numbers";
  // Initialize host array and copy it to CUDA device
  for (int i=0; …
Run Code Online (Sandbox Code Playgroud)

cuda thrust

1
推荐指数
1
解决办法
1994
查看次数

标签 统计

cuda ×1

icc ×1

linux ×1

thrust ×1