Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with 32-bit machines #145

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions .github/workflows/ci_x86.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: CI_X86
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
SequentialTests:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.9'
os:
- ubuntu-latest
arch:
- x86
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- run: julia --project=. -e 'using Pkg; Pkg.instantiate()'
- run: julia --project=. --color=yes --check-bounds=yes test/sequential/runtests.jl
MPITests:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.9'
os:
- ubuntu-latest
arch:
- x86
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
#- uses: julia-actions/julia-buildpkg@v1
- run: |
julia --project=test/TestApp/ -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
- run: cd test/TestApp/compile; ./compile.sh
- run: julia --project=test/TestApp/ --color=yes --check-bounds=yes test/mpi/runtests.jl test/TestApp/compile/TestApp.so
6 changes: 3 additions & 3 deletions src/Algebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ function _setup_prange_without_ghosts(dofs_gids_prange::PRange)
indices = map(partition(dofs_gids_prange)) do dofs_indices
owner = part_id(dofs_indices)
own_indices = OwnIndices(ngdofs,owner,own_to_global(dofs_indices))
ghost_indices = GhostIndices(ngdofs,Int64[],Int32[])
ghost_indices = GhostIndices(ngdofs,Int[],Int32[])
OwnAndGhostIndices(own_indices,ghost_indices)
end
return PRange(indices)
Expand Down Expand Up @@ -1197,8 +1197,8 @@ function _setup_prange_with_ghosts(dofs_gids_prange::PRange,gids,owners)
gids_ghost_to_global, gids_ghost_to_owner = map(
gids,owners,dofs_gids_partition) do gids, owners, indices
ghost_touched = Dict{Int,Bool}()
ghost_to_global = Int64[]
ghost_to_owner = Int64[]
ghost_to_global = Int[]
ghost_to_owner = Int[]
me = part_id(indices)
for (j,jo) in zip(gids,owners)
if jo != me
Expand Down
4 changes: 2 additions & 2 deletions test/AdaptivityMultiFieldTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function DistributedAdaptivityGlue(serial_glue,parent,child)
new_l2g = local_to_global(child_gids)

n2o_cell_map = lazy_map(Reindex(old_g2l),serial_glue.n2o_faces_map[3][new_l2g])
n2o_faces_map = [Int64[],Int64[],collect(n2o_cell_map)]
n2o_faces_map = [Int[],Int[],collect(n2o_cell_map)]
n2o_cell_to_child_id = serial_glue.n2o_cell_to_child_id[new_l2g]
rrules = serial_glue.refinement_rules[old_l2g]
AdaptivityGlue(n2o_faces_map,n2o_cell_to_child_id,rrules)
Expand Down Expand Up @@ -224,4 +224,4 @@ function main(distribute)
return
end

end # module AdaptivityMultiFieldTests
end # module AdaptivityMultiFieldTests
4 changes: 2 additions & 2 deletions test/AdaptivityTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function DistributedAdaptivityGlue(serial_glue,parent,child)
new_l2g = local_to_global(child_gids)

n2o_cell_map = lazy_map(Reindex(old_g2l),serial_glue.n2o_faces_map[3][new_l2g])
n2o_faces_map = [Int64[],Int64[],collect(n2o_cell_map)]
n2o_faces_map = [Int[],Int[],collect(n2o_cell_map)]
n2o_cell_to_child_id = serial_glue.n2o_cell_to_child_id[new_l2g]
rrules = serial_glue.refinement_rules[old_l2g]
AdaptivityGlue(n2o_faces_map,n2o_cell_to_child_id,rrules)
Expand Down Expand Up @@ -231,4 +231,4 @@ function main(distribute)
return
end

end # module AdaptivityTests
end # module AdaptivityTests
2 changes: 1 addition & 1 deletion test/BlockPartitionedArraysTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ copy!(x,v)
LinearAlgebra.fillstored!(__m,1.0)

__v = BlockPVector{Vector{Float64}}(undef,block_range)
#__m = BlockPMatrix{SparseMatrixCSC{Float64,Int64}}(undef,block_range,block_range)
#__m = BlockPMatrix{SparseMatrixCSC{Float64,Int}}(undef,block_range,block_range)

maximum(abs,v)
minimum(abs,v)
Expand Down
Loading