#!/usr/bin/env python3

# This file should be used with PyCOMPSs
# (typically, through an enqueue_compss command)

from model.matrix import Matrix

from pycompss.api.api import compss_barrier


if __name__ == "__main__":
    # Random generation of 3072 x 3072 matrices
    a = Matrix(3072)
    b = Matrix(3072)
    # Initialize the two matrices with random numbers
    a.random()
    b.random()
    # Make them persistent
    a.make_persistent()
    b.make_persistent()

    print("""
*****************************************************
Ready to start the multiplication
*****************************************************
""")

    c = a @ b

    print("""
*****************************************************
Multiplication finished
*****************************************************
""")

#!/usr/bin/env python3

# This file should be used with PyCOMPSs
# (typically, through an enqueue_compss command)

from model.matrix import Matrix

from pycompss.api.api import compss_barrier


if __name__ == "__main__":
    # Random generation of 3072 x 3072 matrices
    a = Matrix(3072)
    b = Matrix(3072)
    # Initialize the two matrices with random numbers
    a.random()
    b.random()
    # Make them persistent
    a.make_persistent()
    b.make_persistent()

    print("""
*****************************************************
Ready to start the multiplication
*****************************************************
""")

    c = a @ b

    print("""
*****************************************************
Multiplication finished
*****************************************************
""")

#!/usr/bin/env python3 # This file should be used with PyCOMPSs # (typically, through an enqueue_compss command) # Random generation of 3072 x 3072 matrices # Initialize the two matrices with random numbers # Make them persistent ***************************************************** Ready to start the multiplication ***************************************************** ***************************************************** Multiplication finished *****************************************************