Commit 70066e0c authored by Karol Latecki's avatar Karol Latecki Committed by Tomasz Zawadzki
Browse files

scripts/nvmf_perf: enable LTO on initiator side

parent 87b94e3b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1360,7 +1360,8 @@ class SPDKInitiator(Initiator):
        self.log.info("Using fio binary %s" % self.fio_bin)
        self.exec_cmd(["git", "-C", self.spdk_dir, "submodule", "update", "--init"])
        self.exec_cmd(["git", "-C", self.spdk_dir, "clean", "-ffdx"])
        self.exec_cmd(["cd", self.spdk_dir, "&&", "./configure", "--with-rdma", "--with-fio=%s" % os.path.dirname(self.fio_bin)])
        self.exec_cmd(["cd", self.spdk_dir, "&&", "./configure", "--with-rdma",
                       "--with-fio=%s" % os.path.dirname(self.fio_bin), "--enable-lto"])
        self.exec_cmd(["make", "-C", self.spdk_dir, "clean"])
        self.exec_cmd(["make", "-C", self.spdk_dir, "-j$(($(nproc)*2))"])