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>

https://github.com/thrust/thrust/wiki/device-backends


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -