问题描述
#include <stdio.h>
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include <thrust/sort.h>
#define SIZE 6
__global__ void kernel1(int* key, int* value)
{
for(int i = 0; i < SIZE; i++)
{
printf("key[%d] = %d value[%d] = %d\n", i, key[i], i, value[i]);
}
printf("\n");
}
int main(){
int key[SIZE] = {
24, 43, 27, 42, 25, 40};
int value

最低0.47元/天 解锁文章
942





