This repository has been archived by the owner on Feb 9, 2021. It is now read-only.
forked from apache/mxnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Julia: add windows-cpu build (apache#13937)
- Julia v0.7 - Julia v1.0
- Loading branch information
Showing
13 changed files
with
184 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
7z x -y windows_package.7z | ||
|
||
# set default output encoding to utf8 | ||
$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8' | ||
|
||
$env:MXNET_HOME = [System.IO.Path]::GetFullPath('.\windows_package') | ||
$env:JULIA_URL = "https://julialang-s3.julialang.org/bin/winnt/x64/0.7/julia-0.7.0-win64.exe" | ||
$env:JULIA_DEPOT_PATH = [System.IO.Path]::GetFullPath('.\julia-depot') | ||
|
||
$JULIA_DIR = [System.IO.Path]::GetFullPath('.\julia07') | ||
$JULIA = "$JULIA_DIR\bin\julia" | ||
|
||
# Download most recent Julia Windows binary | ||
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12 | ||
(New-Object System.Net.WebClient).DownloadFile($env:JULIA_URL, "julia-binary.exe") | ||
if (! $?) { Throw ("Error on downloading Julia Windows binary") } | ||
|
||
# Run installer silently, output to C:\julia07\julia | ||
Start-Process -Wait "julia-binary.exe" -ArgumentList "/S /D=$JULIA_DIR" | ||
if (! $?) { Throw ("Error on installing Julia") } | ||
|
||
& $JULIA -e "using InteractiveUtils; versioninfo()" | ||
|
||
dir | ||
|
||
$src=' | ||
using Pkg | ||
Pkg.activate(".\\julia") | ||
Pkg.build() | ||
Pkg.test() | ||
' | ||
|
||
$src > .\ci-build.jl | ||
|
||
# Redirect all stderr output to stdout, | ||
# since Julia loggers output stuffs to stderr. | ||
# Then, stderr triggers powershell NativeCommandError. | ||
& $JULIA .\ci-build.jl 2>&1 | %{ "$_" } | ||
if ($LastExitCode -eq 1) { Throw ("Error") } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
7z x -y windows_package.7z | ||
|
||
# set default output encoding to utf8 | ||
$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8' | ||
|
||
$env:MXNET_HOME = [System.IO.Path]::GetFullPath('.\windows_package') | ||
$env:JULIA_URL = "https://julialang-s3.julialang.org/bin/winnt/x64/1.0/julia-1.0.3-win64.exe" | ||
$env:JULIA_DEPOT_PATH = [System.IO.Path]::GetFullPath('.\julia-depot') | ||
|
||
$JULIA_DIR = [System.IO.Path]::GetFullPath('.\julia10') | ||
$JULIA = "$JULIA_DIR\bin\julia" | ||
|
||
# Download most recent Julia Windows binary | ||
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12 | ||
(New-Object System.Net.WebClient).DownloadFile($env:JULIA_URL, "julia-binary.exe") | ||
if (! $?) { Throw ("Error on downloading Julia Windows binary") } | ||
|
||
# Run installer silently, output to C:\julia10\julia | ||
Start-Process -Wait "julia-binary.exe" -ArgumentList "/S /D=$JULIA_DIR" | ||
if (! $?) { Throw ("Error on installing Julia") } | ||
|
||
& $JULIA -e "using InteractiveUtils; versioninfo()" | ||
|
||
dir | ||
|
||
$src=' | ||
using Pkg | ||
Pkg.activate(".\\julia") | ||
Pkg.build() | ||
Pkg.test() | ||
' | ||
|
||
$src > .\ci-build.jl | ||
|
||
# Redirect all stderr output to stdout, | ||
# since Julia loggers output stuffs to stderr. | ||
# Then, stderr triggers powershell NativeCommandError. | ||
& $JULIA .\ci-build.jl 2>&1 | %{ "$_" } | ||
if ($LastExitCode -eq 1) { Throw ("Error") } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ deps/src | |
deps/usr | ||
deps/deps.jl | ||
.vscode | ||
/Manifest.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name = "MXNet" | ||
uuid = "a7949054-b901-59c6-b8e3-7238c29bf7f0" | ||
authors = ["Chiyuan Zhang <[email protected]>", "Valentin Churavy <[email protected]>", "Iblis Lin <[email protected]>"] | ||
version = "1.5.0" | ||
|
||
[deps] | ||
BinDeps = "9e28174c-4ba2-5203-b857-d8d62c4213ee" | ||
Formatting = "59287772-0a20-5a39-b81b-1366585eb4c0" | ||
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6" | ||
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb" | ||
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09" | ||
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a" | ||
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" | ||
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
Reexport = "189a3867-3050-52da-a836-e630ba90ab69" | ||
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" | ||
|
||
[compat] | ||
julia = "≥0.7" | ||
|
||
[extras] | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[targets] | ||
test = ["Test"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
julia 0.6 | ||
julia 0.7 | ||
Formatting | ||
BinDeps | ||
JSON | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,7 @@ moderngpu/* | |
deformable_im2col.cuh | ||
deformable_im2col.h | ||
REQUIRE | ||
Project.toml | ||
include/* | ||
.*.iml | ||
.*.json.ref |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters