Change current device to specified device.
More...
Change current device to specified device.
These functions change the current device. Operations after this called will be performed on the set device.
| AFAPI void af::deviceset |
( |
const int |
device | ) |
|
| AFAPI void af::setDevice |
( |
const int |
device | ) |
|
Sets the current device.
- Parameters
-
| [in] | device | The ID of the target device |
- Examples:
- adaptive_thresholding.cpp, bagging.cpp, binary_thresholding.cpp, black_scholes_options.cpp, brain_segmentation.cpp, cholesky.cpp, deep_belief_net.cpp, edge.cpp, filters.cpp, fractal.cpp, helloworld.cpp, image_demo.cpp, image_editing.cpp, integer.cpp, kmeans.cpp, knn.cpp, logistic_regression.cpp, lu.cpp, matching.cpp, morphing.cpp, naive_bayes.cpp, neural_network.cpp, optical_flow.cpp, perceptron.cpp, pi.cpp, pyramids.cpp, qr.cpp, rainfall.cpp, rbm.cpp, softmax_regression.cpp, svd.cpp, and swe.cpp.