def download(self):
        """Download OpenMPI.

        Returns:
            Boolean: True if download was successful otherwise False.
        """
        # Remove last number from version
        short_version = ".".join(self.version.split(".")[:-1])

        url = ("https://www.open-mpi.org/software/ompi/v{}/downloads/"
               "openmpi-{}.tar.gz").format(short_version, self.version)
        archive_path = "{}/openmpi-{}.tar.gz".format(self.src_dir,
                                                     self.version)

        if os.path.isfile(archive_path):
            return True

        logging.info("Downloading OpenMPI.")
        logging.debug("URL: %s", url)

        download.file(url, archive_path)

        if os.path.isfile(archive_path):
            return True
        return False
Ejemplo n.º 2
0
    def download(self):
        """Download YCSB.

        Returns:
            Boolean: True if download was successful otherwise False.
        """
        ycsb_url = ("https://github.com/brianfrankcooper/YCSB/releases/"
                    "download/{0}/ycsb-{0}.tar.gz".format(self.version))
        ycsb_archive_path = "{}/ycsb-{}.tar.gz".format(self.src_dir,
                                                       self.version)

        jconnect_url = ("https://dev.mysql.com/get/Downloads/Connector-J/"
                        "mysql-connector-java-{}.tar.gz".format(
                            self.jconnect_ver))
        jconnect_path = "{}/mysql-connector-java-{}.tar.gz".format(
            self.src_dir, self.jconnect_ver)
        if not os.path.isfile(ycsb_archive_path):
            logging.info("Downloading YCSB.")
            download.file(ycsb_url, ycsb_archive_path)
            logging.debug("Downloading YCSB complete.")

        if not os.path.isfile(jconnect_path):
            logging.info("Downloading J Connector.")
            download.file(jconnect_url, jconnect_path)
            logging.debug("Downloading J Connector complete.")

        if os.path.isfile(ycsb_archive_path) and os.path.isfile(jconnect_path):
            logging.debug('"%s" and "%s" exists.', ycsb_archive_path,
                          jconnect_path)
            return True
        return False
Ejemplo n.º 3
0
    def download(self, url=None):
        """Download BLIS.

        Returns:
            Boolean: True if download was successful otherwise False.
        """
        archive_path = "{}/AMD-BLIS-Linux-{}.tar.gz".format(
            self.src_dir, self.version)

        if os.path.isfile(archive_path):
            return True

        if url is None:
            prettify.error_message(
                "Unable to find an URL for BLIS. Please visit "
                '"http://developer.amd.com/amd-cpu-libraries/blas-library/" to'
                ' download BLIS and place the archive in the "{}" directory.'.
                format(self.src_dir))
            return False

        logging.info("Downloading BLIS.")
        download.file(url, archive_path)

        if os.path.isfile(archive_path):
            return True
        return False
    def download(self, url=None):
        """Download MLC.

        Returns:
            Boolean: True if download was successful otherwise False.
        """
        archive_path = "{}/mlc_v{}.tgz".format(self.src_dir, self.version)

        if os.path.isfile(archive_path):
            return True

        if url is None:
            prettify.error_message(
                "Unable to find an URL for MLC. Please visit "
                "https://software.intel.com/en-us/articles/intelr-memory-latency-checker"  # nopep8
                " to download MLC and place the archive in the {} directory.".
                format(self.src_dir))
            return False

        logging.info("Downloading MLC.")
        download.file(url, archive_path)

        if os.path.isfile(archive_path):
            return True
        return False
    def download(self):
        """Download Docker.

        Returns:
            Boolean: True if download was successful otherwise False.
        """
        archive_name = "docker-{}-ce.tgz".format(self.version)
        archive_path = "{}/{}".format(self.src_dir, archive_name)

        if os.path.isfile(archive_path):
            return True

        url = "https://download.docker.com/linux/static/stable/x86_64/" + archive_name

        logging.info("Downloading Docker Community Edition.")
        download.file(url, archive_path)

        if os.path.isfile(archive_path):
            return True
        return False
    def download(self):
        """Download High-Performance Linpack (HPL).

        Returns:
            Boolean: True if download was successful otherwise False.
        """
        archive_name = "hpl-{}.tar.gz".format(self.version)
        archive_path = "{}/{}".format(self.src_dir, archive_name)

        if os.path.isfile(archive_path):
            return True

        url = "http://www.netlib.org/benchmark/hpl/" + archive_name

        logging.info("Downloading High-Performance Linpack.")
        download.file(url, archive_path)

        if os.path.isfile(archive_path):
            return True
        return False
    def download(self):
        """Download OpenSSL.

        Returns:
            Boolean: True if download was successful otherwise False.
        """
        archive_path = "{}/openssl-{}.tar.gz".format(self.src_dir, self.version)

        if os.path.isfile(archive_path):
            return True

        url = "https://www.openssl.org/source/openssl-{}.tar.gz".format(
            self.version)

        logging.info("Downloading OpenSSL.")
        download.file(url, archive_path)

        if os.path.isfile(archive_path):
            return True
        return False
Ejemplo n.º 8
0
    def download(self):
        """Download STREAM source.

        Returns:
            Boolean: True if download was successful otherwise False.
        """
        url = "https://www.cs.virginia.edu/stream/FTP/Code/stream.c"
        target_file = self.stream_dir + "/stream.c"

        if os.path.isfile(target_file):
            return True

        logging.info("Downloading STREAM.")

        os.makedirs(self.stream_dir, exist_ok=True)
        download.file(url, target_file)

        if os.path.isfile(target_file):
            return True
        return False
    def download(self):
        """Download glibc.

        Returns:
            Boolean: True if download was successful otherwise False.
        """
        url = "https://ftp.gnu.org/gnu/glibc/glibc-{}.tar.gz".format(
            self.version)
        archive_path = "{}/glibc-{}.tar.gz".format(self.src_dir, self.version)

        if os.path.isfile(archive_path):
            return True

        logging.info("Downloading glibc.")

        download.file(url, archive_path)

        if os.path.isfile(archive_path):
            return True
        return False
    def download(self):
        """Download Cassandra.

        Returns:
            Boolean: True if download was successful otherwise False.
        """
        archive = "apache-cassandra-{}-bin.tar.gz".format(self.version)
        url = "http://www.gtlib.gatech.edu/pub/apache/cassandra/{}/{}".format(
            self.version, archive)
        archive_path = "{}/{}".format(self.src_dir, archive)

        if os.path.isfile(archive_path):
            return True

        logging.info("Downloading Cassandra.")

        download.file(url, archive_path)

        if os.path.isfile(archive_path):
            return True
        return False
Ejemplo n.º 11
0
    def download(self):
        """Download the Linux kernel.

        Returns:
            Boolean: True if download was successful otherwise False.
        """
        major_version = self.version.split(".")[0]
        url = ("http://www.kernel.org/pub/linux/kernel/v{}.x/"
               "linux-{}.tar.gz").format(major_version, self.version)
        archive_path = "{}/linux-{}.tar.gz".format(self.src_dir, self.version)

        if os.path.isfile(archive_path):
            return True

        logging.info("Downloading the Linux kernel.")

        download.file(url, archive_path)

        if os.path.isfile(archive_path):
            return True
        return False
Ejemplo n.º 12
0
    def download(self):
        """Download LMbench.

        Returns:
            Boolean: True if download was successful otherwise False.
        """
        archive_path = "{}/lmbench{}.tar.gz".format(self.src_dir, self.version)

        if os.path.isfile(archive_path):
            return True

        url = "http://www.bitmover.com/lmbench/lmbench{}.tar.gz".format(
            self.version)

        logging.info("Downloading LMbench.")

        download.file(url, archive_path)

        if os.path.isfile(archive_path):
            return True
        return False
Ejemplo n.º 13
0
    def download(self):
        """Download zlib.

        Returns:
            Boolean: True if download was successful otherwise False.
        """
        url = "https://zlib.net/zlib-{}.tar.gz".format(self.version)
        archive_path = "{}/zlib-{}.tar.gz".format(self.src_dir, self.version)

        if os.path.isfile(archive_path):
            logging.debug('"%s" exists, exiting early.', archive_path)
            return True

        logging.info("Downloading zlib.")
        download.file(url, archive_path)
        logging.debug("Downloading zlib complete.")

        if os.path.isfile(archive_path):
            logging.debug('"%s" exists.', archive_path)
            return True
        return False
    def download(self):
        """Download OpenBLAS.

        Returns:
            Boolean: True if download was successful otherwise False.
        """
        url = "http://github.com/xianyi/OpenBLAS/archive/v{}.tar.gz".format(
            self.version)
        archive_path = "{}/openblas-{}.tar.gz".format(self.src_dir,
                                                      self.version)

        if os.path.isfile(archive_path):
            return True

        logging.info("Downloading OpenBLAS.")
        logging.debug("URL: %s", url)

        download.file(url, archive_path)

        if os.path.isfile(archive_path):
            return True
        return False
Ejemplo n.º 15
0
    def download(self):
        """Download YCSB.

        Returns:
            Boolean: True if download was successful otherwise False.
        """
        url = ("https://github.com/brianfrankcooper/YCSB/releases/download/"
               "{0}/ycsb-{0}.tar.gz".format(self.version))
        archive_path = "{}/ycsb-{}.tar.gz".format(self.src_dir, self.version)

        if os.path.isfile(archive_path):
            logging.debug('"%s" exists, exiting early.', archive_path)
            return True

        logging.info("Downloading YCSB.")
        download.file(url, archive_path)
        logging.debug("Downloading YCSB complete.")

        if os.path.isfile(archive_path):
            logging.debug('"%s" exists.', archive_path)
            return True
        return False
    def download(self):
        """Download Maven.

        Returns:
            Boolean: True if download was successful otherwise False.
        """
        major_ver = self.version.split(".")[0]
        archive = "apache-maven-{}-bin.tar.gz".format(self.version)
        url = ("http://apache.mirrors.lucidnetworks.net/maven/maven-{}/{}/"
               "binaries/{}".format(major_ver, self.version, archive))
        archive_path = "{}/{}".format(self.src_dir, archive)

        if os.path.isfile(archive_path):
            return True

        logging.info("Downloading Maven.")

        download.file(url, archive_path)

        if os.path.isfile(archive_path):
            return True
        return False
    def download(self):
        """Download MySQL.

        Returns:
            Boolean: True if download was successful otherwise False.
        """
        minor_ver = ".".join(self.mysql_ver.split(".")[:2])
        archive = "mysql-{}-linux-glibc{}-x86_64.tar.gz".format(
            self.mysql_ver, self.glibc_ver)
        url = "https://dev.mysql.com/get/Downloads/MySQL-{}/{}".format(
            minor_ver, archive)
        archive_path = "{}/{}".format(self.src_dir, archive)

        if os.path.isfile(archive_path):
            return True

        logging.info("Downloading MySQL.")
        download.file(url, archive_path)

        if os.path.isfile(archive_path):
            return True
        return False
Ejemplo n.º 18
0
    def download(self, url=None):
        """Download MKL.

        Returns:
            Boolean: True if download was successful otherwise False.
        """
        archive_path = "{}/l_mkl_{}.tgz".format(self.src_dir, self.version)

        if os.path.isfile(archive_path):
            return True

        if url is None:
            prettify.error_message(
                "Unable to find an URL for MKL. Please visit "
                "https://software.intel.com/en-us/mkl to download MKL and "
                "place the archive in the {} directory.".format(self.src_dir))
            return False

        logging.info("Downloading MKL.")
        download.file(url, archive_path)

        if os.path.isfile(archive_path):
            return True
        return False