我已经安装了英特尔编译器英特尔®Parallel Studio XE 2015,并且已经在桌面上编写了简单的hello world程序。
那么我不知道如何运行该cpp文件。
我尝试过
icpc helloworld.cpp
Run Code Online (Sandbox Code Playgroud)
但它说找不到命令。
我有一个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)