.. ****************************************************************************** .. * Copyright 2020-2021 Intel Corporation .. * .. * Licensed under the Apache License, Version 2.0 (the "License"); .. * you may not use this file except in compliance with the License. .. * You may obtain a copy of the License at .. * .. * http://www.apache.org/licenses/LICENSE-2.0 .. * .. * Unless required by applicable law or agreed to in writing, software .. * distributed under the License is distributed on an "AS IS" BASIS, .. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. .. * See the License for the specific language governing permissions and .. * limitations under the License. .. *******************************************************************************/ .. _cpu_vs_gpu: CPU and GPU Support =================== Not all computation modes, methods, and parameters are supported on both CPU and GPU. Differences in CPU and GPU support are listed below. Computation modes ***************** For the following algorithms, only listed computation modes are supported on GPU: .. tabularcolumns:: |\Y{0.5}|\Y{0.5}| .. list-table:: GPU Support: Computaion Modes :header-rows: 1 :widths: 10 10 :align: left * - Algorithm - Supported on GPU * - :ref:`dbscan` - :ref:`batch ` * - :ref:`linear_regression` - :ref:`batch `, :ref:`online ` * - :ref:`logistic_regression` - :ref:`batch `, :ref:`online ` Methods ******* For the following algorithms, only listed methods are supported on GPU: .. tabularcolumns:: |\Y{0.5}|\Y{0.5}| .. list-table:: GPU Support: Methods :header-rows: 1 :widths: 10 10 :align: left :class: longtable * - Algortihm - Supported on GPU * - :ref:`kmeans` - ``defaultDense`` * - :ref:`kmeans_init` - ``defaultDense``, ``randomDense`` * - :ref:`linear_regression` - ``defaultDense`` * - :ref:`moments_low_order` - ``defaultDense`` * - :ref:`sgd_solver` - ``miniBatch`` * - :ref:`Covariance ` - ``defaultDense`` * - :ref:`pca` - ``defaultDense`` * - :ref:`knn` - Brute Force * - :ref:`svm` - ``thunder`` * - :ref:`decision_forest` - ``hist`` Parameters ********** .. tabularcolumns:: |\Y{0.5}|\Y{0.5}| .. list-table:: GPU Support: Algorithm Parameters :header-rows: 1 :widths: 10 10 :align: left :class: longtable * - Algortihm - Notes * - :ref:`svm` - ``doShrinking`` is only supported for ``defaultDense`` method. * - :ref:`dbscan` - - On GPU, the ``memorySavingMode`` flag can only be set to ``true``. - On GPU, the ``weights`` parameter is not supported. * - :ref:`kernel` - On GPU, the only supported computation mode (``ComputationMode``) is ``matrixMatrix``. * - :ref:`objective_function` - - On GPU, only :ref:`logistic_loss` and :ref:`cross_entropy_loss` are supported, :ref:`mse` is not supported. - On GPU, ``resultsToCompute`` only computes ``value``, ``gradient``, and ``hessian``. * - :ref:`logistic_regression` - ``penaltyL1`` is not supported on GPU