parallel processing - Thrust OpenMP without CUDA? -
can use thrust openmp device system if machine doesn't have cuda gpu? if so, still require cuda toolkit?
i found in cuda documentation:
when using either openmp or tbb systems, nvcc
isn't required. in general, nvcc
required when targeting thrust @ cuda. example, compile previous code directly g++
command line:
$ g++ -o2 -o monte_carlo monte_carlo.cpp -fopenmp -dthrust_device_system=thrust_device_system_omp -lgomp -i<path-to-thrust-headers>
Comments
Post a Comment