Intel® oneAPI Data Analytics Library
Learn from community members on how to build compute-intensive applications that run efficiently on Intel® architecture.
226 Discussions

Do I get the same performance when using the C++ API and the Java API?

Ying_H_Intel
Employee
421 Views

 

Do I get the same performance when using the C++ API and the Java API?

0 Kudos
1 Reply
Ilya_B_Intel
Employee
421 Views

Computation kernels used for C++ and Java are the same, thus performance of computation intensive algorithms is comparable.

At the same time, there are kernels which performance is highly influenced by data layout and for ideal layout limited by memory bandwidth. An example of such algorithms is training of Multinomial Naïve Bayes. In those cases C++ and Java performance may differ significantly and the main factor will be particular memory layout.

We provide performance considerations on algorithm-by-algorithm basis in programming guide.

General recommendation is using provided DataSources where applicable to achieve optimal performance.

0 Kudos
Reply