You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/01/20 13:09:51 UTC

[GitHub] marcoabreu commented on a change in pull request #13937: WIP: Julia: add windows-cpu build

marcoabreu commented on a change in pull request #13937: WIP: Julia: add windows-cpu build
URL: https://github.com/apache/incubator-mxnet/pull/13937#discussion_r249278277
 
 

 ##########
 File path: ci/windows/test_jl07_cpu.ps1
 ##########
 @@ -0,0 +1,45 @@
+# 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
+
+$env:MXNET_HOME=[io.path]::combine($PSScriptRoot, 'mxnet_home')
+$env:JULIA_URL="https://julialang-s3.julialang.org/bin/winnt/x64/0.7/julia-0.7.0-win64.exe"
+$env:JULIA_DEPOT_PATH=[io.path]::combine($PSScriptRoot, 'julia-depot')
+
+# rm -rf
+Remove-item -Recurse -Force -ErrorAction Ignore C:\julia07
+
+# mkdir
+New-item -ItemType Directory C:\julia07
+
+# Download most recent Julia Windows binary
+[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12
+(New-Object System.Net.WebClient).DownloadFile($env:JULIA_URL, "C:\julia07\julia-binary.exe")
 
 Review comment:
   Please note that C:\julia07 is a shared folder that will be accessed by multiple jobs in parallel. This can cause concurrency problems.
   
   Instead, I'd recommend to download into the current workspace since that one guarantees exclusive access. In parallel, please create an issue with a feature request so we install Julia in our Windows slaves. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services