Skip to content

Commit 8b05e24

Browse files
committed
Rename package to ParallelProcessingTools, make Julia v1.0 compatible
1 parent b8a6b8a commit 8b05e24

18 files changed

+216
-403
lines changed

.travis.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ os:
44
- linux
55
- osx
66
julia:
7-
- 0.6
7+
- 0.7
8+
- 1.0
89
- nightly
910
notifications:
1011
email: false
@@ -27,9 +28,10 @@ git:
2728

2829
## uncomment the following lines to override the default test script
2930
#script:
30-
# - julia -e 'Pkg.clone(pwd()); Pkg.build("MultiThreadingTools"); Pkg.test("MultiThreadingTools"; coverage=true)'
31+
# - julia -e '...'
32+
3133
after_success:
3234
# push coverage results to Coveralls
33-
- julia -e 'cd(Pkg.dir("MultiThreadingTools")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
35+
- julia -e 'import Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
3436
# push coverage results to Codecov
35-
- julia -e 'cd(Pkg.dir("MultiThreadingTools")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
37+
- julia -e 'import Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The MultiThreadingTools.jl package is licensed under the MIT "Expat" License:
1+
The ParallelProcessingTools.jl package is licensed under the MIT "Expat" License:
22

33
> Copyright (c) 2017:
44
>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# MultiThreadingTools.jl
1+
# ParallelProcessingTools.jl

REQUIRE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
julia 0.6
2-
Compat 0.33
1+
julia 0.7

appveyor.yml

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
environment:
22
matrix:
3-
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.6/julia-0.6-latest-win32.exe"
4-
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.6/julia-0.6-latest-win64.exe"
5-
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
6-
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
3+
- julia_version: 0.7
4+
- julia_version: 1.0
5+
- julia_version: latest
6+
7+
platform:
8+
- x86 # 32-bit
9+
- x64 # 64-bit
710

811
## uncomment the following lines to allow failures on nightly julia
912
## (tests will run but not make your overall status red)
1013
#matrix:
1114
# allow_failures:
12-
# - JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
13-
# - JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
15+
# - julia_version: 1.0
16+
# - julia_version: latest
17+
18+
#branches:
19+
# only:
20+
# - master
21+
# - /release-.*/
1422

1523
notifications:
1624
- provider: Email
@@ -19,24 +27,12 @@ notifications:
1927
on_build_status_changed: false
2028

2129
install:
22-
- ps: "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12"
23-
# If there's a newer build queued for the same PR, cancel this one
24-
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
25-
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
26-
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
27-
throw "There are newer queued builds for this pull request, failing early." }
28-
# Download most recent Julia Windows binary
29-
- ps: (new-object net.webclient).DownloadFile(
30-
$env:JULIA_URL,
31-
"C:\projects\julia-binary.exe")
32-
# Run installer silently, output to C:\projects\julia
33-
- C:\projects\julia-binary.exe /S /D=C:\projects\julia
30+
- ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1"))
3431

3532
build_script:
36-
# Need to convert from shallow to complete for Pkg.clone to work
37-
- IF EXIST .git\shallow (git fetch --unshallow)
38-
- C:\projects\julia\bin\julia -e "versioninfo();
39-
Pkg.clone(pwd(), \"MultiThreadingTools\"); Pkg.build(\"MultiThreadingTools\")"
33+
- echo "%JL_BUILD_SCRIPT%"
34+
- C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%"
4035

4136
test_script:
42-
- C:\projects\julia\bin\julia -e "Pkg.test(\"MultiThreadingTools\")"
37+
- echo "%JL_TEST_SCRIPT%"
38+
- C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"

src/MultiThreadingTools.jl

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/ParallelProcessingTools.jl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This file is a part of ParallelProcessingTools.jl, licensed under the MIT License (MIT).
2+
3+
__precompile__(true)
4+
5+
module ParallelProcessingTools
6+
7+
using Base.Threads
8+
9+
include("threadsafe.jl")
10+
include("threadlocal.jl")
11+
include("threadexec.jl")
12+
include("workpartition.jl")
13+
14+
end # module

src/processexec.jl

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/reductions.jl

Lines changed: 0 additions & 79 deletions
This file was deleted.

src/threadedexec.jl

Lines changed: 0 additions & 101 deletions
This file was deleted.

0 commit comments

Comments
 (0)