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

Flip exception_flag filter! predicate #717

Merged
merged 1 commit into from
Feb 16, 2021
Merged

Conversation

S-D-R
Copy link
Contributor

@S-D-R S-D-R commented Feb 16, 2021

julia> external_gvars = ["exception_flag", "other_flag", "another_flag"]
3-element Vector{String}:
 "exception_flag"
 "other_flag"
 "another_flag"

julia> filter!(isequal("exception_flag"), external_gvars)
1-element Vector{String}:
 "exception_flag"

julia> external_gvars = ["exception_flag", "other_flag", "another_flag"]
3-element Vector{String}:
 "exception_flag"
 "other_flag"
 "another_flag"

julia> filter!(x -> x != "exception_flag", external_gvars)
2-element Vector{String}:
 "other_flag"
 "another_flag"

Noticed this while adding other externally initialized global variables. It was very confusing to not see them show up in external_gvars.

src/compiler/execution.jl Outdated Show resolved Hide resolved
julia> external_gvars = ["exception_flag", "other_flag", "another_flag"]
3-element Vector{String}:
 "exception_flag"
 "other_flag"
 "another_flag"

julia> filter!(isequal("exception_flag"), external_gvars)
1-element Vector{String}:
 "exception_flag"

julia> external_gvars = ["exception_flag", "other_flag", "another_flag"]
3-element Vector{String}:
 "exception_flag"
 "other_flag"
 "another_flag"

julia> filter!(x -> x != "exception_flag", external_gvars)
2-element Vector{String}:
 "other_flag"
 "another_flag"
@codecov
Copy link

codecov bot commented Feb 16, 2021

Codecov Report

Merging #717 (55d0609) into master (597603a) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #717   +/-   ##
=======================================
  Coverage   79.88%   79.88%           
=======================================
  Files         122      122           
  Lines        7388     7388           
=======================================
  Hits         5902     5902           
  Misses       1486     1486           
Impacted Files Coverage Δ
src/compiler/execution.jl 90.54% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 597603a...55d0609. Read the comment docs.

@maleadt maleadt added the bugfix This gets something working again. label Feb 16, 2021
@maleadt maleadt merged commit 8f38be5 into JuliaGPU:master Feb 16, 2021
@S-D-R S-D-R deleted the patch-1 branch April 22, 2021 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This gets something working again.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants