CUDA并行编程

并行编程

参考

1. pthread 求素数

// PrimesThreads.c

// PrimesThreads.c

// threads-based program to find the number of primes between 2 and n;
// uses the Sieve of Eratosthenes, deleting all multiples of 2, all
// multiples of 3, all multiples of 5, etc.

// for illustration purposes only; NOT claimed to be efficient

// Unix 下编译  gcc -g -o primesthreads PrimesThreads.c -lpthread -lm

// 运行  primesthreads n num_threads

#include 

你可能感兴趣的:(人工智能,深度学习,深度学习,人工智能)