diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9433758..7f781cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,23 +7,26 @@ on: branches: - master tags: '*' + workflow_dispatch: jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.version == 'nightly' }} strategy: fail-fast: false matrix: version: - - '1.6' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'. - - '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia. + - '1.6' + - '1' + # - 'nightly' os: - ubuntu-latest arch: - x64 steps: - uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@v1 + - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} @@ -40,7 +43,28 @@ jobs: - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v5 with: - file: lcov.info - + files: lcov.info +# docs: +# name: Documentation +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v4 +# - uses: julia-actions/setup-julia@v2 +# with: +# version: '1' +# - run: | +# julia --project=docs -e ' +# using Pkg +# Pkg.develop(PackageSpec(path=pwd())) +# Pkg.instantiate()' +# - run: | +# julia --project=docs -e ' +# using Documenter: doctest +# using ForwardDiff +# doctest(ForwardDiff)' +# - run: julia --project=docs docs/make.jl +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} diff --git a/Project.toml b/Project.toml index 5f8245d..231f633 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "FixedEffects" uuid = "c8885935-8500-56a7-9867-7708b20db0eb" -version = "2.4.0" +version = "2.4.1" [deps] LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" diff --git a/ext/CUDAExt.jl b/ext/CUDAExt.jl index 6526c3d..ce2886e 100644 --- a/ext/CUDAExt.jl +++ b/ext/CUDAExt.jl @@ -55,7 +55,7 @@ function gather_kernel!(fecoef, refs, α, y, cache) index = (blockIdx().x - 1) * blockDim().x + threadIdx().x stride = blockDim().x * gridDim().x @inbounds for i = index:stride:length(y) - CUDA.atomic_add!(pointer(fecoef, refs[i]), α * y[i] * cache[i]) + CUDA.@atomic fecoef[refs[i]] += α * y[i] * cache[i] end end @@ -131,7 +131,7 @@ function scale_kernel!(scale, refs, interaction, weights) index = (blockIdx().x - 1) * blockDim().x + threadIdx().x stride = blockDim().x * gridDim().x @inbounds for i = index:stride:length(interaction) - CUDA.atomic_add!(pointer(scale, refs[i]), abs2(interaction[i]) * weights[i]) + CUDA.@atomic scale[refs[i]] += abs2(interaction[i]) * weights[i] end end