File tree Expand file tree Collapse file tree 7 files changed +31
-8
lines changed Expand file tree Collapse file tree 7 files changed +31
-8
lines changed Original file line number Diff line number Diff line change 30
30
* to calculate cos of input vector elements
31
31
*
32
32
* Possible compile line:
33
- * clang++ -g -fPIC examples/example3.cpp -Idpnp -Idpnp/backend/include -Ldpnp -Wl,-rpath='$ORIGIN'/dpnp -ldpnp_backend_c -o example3
33
+ * . /opt/intel/oneapi/setvars.sh
34
+ * g++ -g dpnp/backend/examples/example3.cpp -Idpnp -Idpnp/backend/include -Ldpnp -Wl,-rpath='$ORIGIN'/dpnp -ldpnp_backend_c -o example3
34
35
*
35
36
*/
36
37
Original file line number Diff line number Diff line change 23
23
// THE POSSIBILITY OF SUCH DAMAGE.
24
24
// *****************************************************************************
25
25
26
+ /* *
27
+ * Example 5.
28
+ *
29
+ * This example shows simple usage of the DPNP C++ Backend RNG library
30
+ *
31
+ * Possible compile line:
32
+ * . /opt/intel/oneapi/setvars.sh
33
+ * g++ -g dpnp/backend/examples/example5.cpp -Idpnp -Idpnp/backend/include -Ldpnp -Wl,-rpath='$ORIGIN'/dpnp -ldpnp_backend_c -o example5
34
+ *
35
+ */
36
+
26
37
#include < iostream>
27
38
28
39
#include < dpnp_iface.hpp>
Original file line number Diff line number Diff line change 30
30
* to calculate eigenvalues and eigenvectors of a symmetric matrix
31
31
*
32
32
* Possible compile line:
33
- * clang++ -g -fPIC examples/example7.cpp -Idpnp -Idpnp/backend/include -Ldpnp -Wl,-rpath='$ORIGIN'/dpnp -ldpnp_backend_c -o example7
33
+ * . /opt/intel/oneapi/setvars.sh
34
+ * g++ -g dpnp/backend/examples/example7.cpp -Idpnp -Idpnp/backend/include -Ldpnp -Wl,-rpath='$ORIGIN'/dpnp -ldpnp_backend_c -o example7
34
35
*
35
36
*/
36
37
Original file line number Diff line number Diff line change 23
23
// THE POSSIBILITY OF SUCH DAMAGE.
24
24
// *****************************************************************************
25
25
26
- // clang++ -g -fPIC examples/example8.cpp -Idpnp -Idpnp/backend/include -Ldpnp -Wl,-rpath='$ORIGIN'/dpnp -ldpnp_backend_c -o example8
26
+ /* *
27
+ * Example 9.
28
+ *
29
+ * TODO explanation of the example
30
+ *
31
+ * Possible compile line:
32
+ * . /opt/intel/oneapi/setvars.sh
33
+ * g++ -g dpnp/backend/examples/example8.cpp -Idpnp -Idpnp/backend/include -Ldpnp -Wl,-rpath='$ORIGIN'/dpnp -ldpnp_backend_c -o example8
34
+ *
35
+ */
27
36
#include < iostream>
28
37
29
38
#include " dpnp_iface.hpp"
Original file line number Diff line number Diff line change 30
30
* to calculate sum of the given elements vector
31
31
*
32
32
* Possible compile line:
33
- * clang++ dpnp/backend/examples/example9.cpp -Idpnp -Idpnp/backend/include -Ldpnp -Wl,-rpath='$ORIGIN'/dpnp -ldpnp_backend_c -o example9
33
+ * . /opt/intel/oneapi/setvars.sh
34
+ * g++ -g dpnp/backend/examples/example9.cpp -Idpnp -Idpnp/backend/include -Ldpnp -Wl,-rpath='$ORIGIN'/dpnp -ldpnp_backend_c -o example9
34
35
*
35
36
*/
36
37
Original file line number Diff line number Diff line change 30
30
* to calculate black scholes algorithm like in Python version
31
31
*
32
32
* Possible compile line:
33
- * clang++ -g -fPIC dpnp/backend/examples/example_bs.cpp -Idpnp -Idpnp/backend/include -Ldpnp -Wl,-rpath='$ORIGIN'/dpnp -ldpnp_backend_c -o example_bs
34
- *
33
+ * . /opt/intel/oneapi/setvars.sh
34
+ * g++ -g dpnp/backend/examples/example_bs.cpp -Idpnp -Idpnp/backend/include -Ldpnp -Wl,-rpath='$ORIGIN'/dpnp -ldpnp_backend_c -o example_bs
35
35
*/
36
36
37
37
#include < cmath>
Original file line number Diff line number Diff line change 29
29
* This example shows how to get a runtime pointer from DPNP C++ Backend library
30
30
*
31
31
* Possible compile line:
32
- * clang++ examples/example_experimental_iface.cpp -o example_experimental_iface -Idpnp -Idpnp/backend/include -Ldpnp -Wl,-rpath='$ORIGIN'/dpnp -ldpnp_backend_c
33
- *
32
+ * . /opt/intel/oneapi/setvars.sh
33
+ * g++ -g dpnp/backend/examples/example_experimental_iface.cpp -Idpnp -Idpnp/backend/include -Ldpnp -Wl,-rpath='$ORIGIN'/dpnp -ldpnp_backend_c -o example_experimental_iface
34
34
*/
35
35
36
36
#include < iostream>
You can’t perform that action at this time.
0 commit comments