Skip to content

Commit

Permalink
Fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
luraess committed Jul 29, 2023
1 parent a7220c0 commit a98bb96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ParallelKernel/init_parallel_kernel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function init_parallel_kernel(caller::Module, package::Symbol, numbertype::DataT
elseif isdefined(caller, :Data) && isdefined(caller.Data, :DeviceArray)
@info "Module Data from previous module initialization found in caller module ($caller); module Data not created."
else
@warn "Module Data cannot be created in caller module ($caller) as there is already a user defined symbol (module/variable...) with this name. "
@info "Module Data cannot be created in caller module ($caller) as there is already a user defined symbol (module/variable...) with this name. "
end
@eval(caller, $pkg_import_cmd)
@eval(caller, $ad_import_cmd)
Expand Down
2 changes: 1 addition & 1 deletion src/ParallelKernel/parallel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ end

function parallel_call_gpu(ranges::Union{Symbol,Expr}, kernelcall::Expr, backend_kwargs_expr::Array, async::Bool, package::Symbol; stream::Union{Symbol,Expr}=default_stream(package), shmem::Union{Symbol,Expr,Nothing}=nothing, launch::Bool=true, configcall::Expr=kernelcall)
maxsize = :(length.(ParallelStencil.ParallelKernel.promote_ranges($ranges)))
nthreads = :( ParallelStencil.ParallelKernel.compute_nthreads($maxsize, $package) )
nthreads = :( ParallelStencil.ParallelKernel.compute_nthreads($maxsize, package) )
nblocks = :( ParallelStencil.ParallelKernel.compute_nblocks($maxsize, $nthreads) )
parallel_call_gpu(ranges, nblocks, nthreads, kernelcall, backend_kwargs_expr, async, package; stream=stream, shmem=shmem, launch=launch)
end
Expand Down

0 comments on commit a98bb96

Please sign in to comment.