Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Used jom for windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
lebeg committed Sep 14, 2018
1 parent 52116d4 commit a85180d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ci/build_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@ def windows_build(args):
logging.info("Found mxnet root: {}".format(mxnet_root))
with remember_cwd():
os.chdir(path)
logging.info("Generating project with CMake")
check_call("cmake -G \"Visual Studio 14 2015 Win64\" {} {}".format(CMAKE_FLAGS[args.flavour], mxnet_root), shell=True)
cmd = "\"{}\"; if ($?) { cmake -G \"NMake Makefiles JOM\" {} {} }".format(KNOWN_VCVARS[0],
CMAKE_FLAGS[args.flavour], mxnet_root)
logging.info("Generating project with CMake:\n{}".format(cmd))
check_call(cmd, shell=True)
logging.info("Building with visual studio")
t0 = int(time.time())
check_call(
["msbuild", "mxnet.sln", "/p:configuration=release;platform=x64;BuildInParallel=true", "/maxcpucount",
"/v:minimal"])
check_call(["jom"])
logging.info("Build flavour: %s complete in directory: \"%s\"", args.flavour, os.path.abspath(path))
logging.info("Build took %s" , datetime.timedelta(seconds=int(time.time()-t0)))
logging.info("Build took %s", datetime.timedelta(seconds=int(time.time() - t0)))
windows_package(args)

def windows_package(args):
Expand Down

0 comments on commit a85180d

Please sign in to comment.