Skip to content

Supressing harmless warning and error messages #366

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

Closed
ali-ramadhan opened this issue Aug 22, 2019 · 1 comment · Fixed by #538
Closed

Supressing harmless warning and error messages #366

ali-ramadhan opened this issue Aug 22, 2019 · 1 comment · Fixed by #538
Labels
bug 🐞 Even a perfect program still has bugs
Milestone

Comments

@ali-ramadhan
Copy link
Member

ali-ramadhan commented Aug 22, 2019

Right now anyone using Oceananigans for the first time sees Casette warnings (vchuravy/GPUifyLoops.jl#94) and CUDA warnings on the CPU.

They're harmless issues but give the feeling of an unstable package.

Would be good to suppress them somehow.

This package might help: https://github.com/JuliaIO/Suppressor.jl

What I see on a CPU:

WARNING: Method definition recurse(Cassette.Context{N, M, T, P, B, H} where H<:Union{Cassette.DisableHooks, Nothing} where B<:Union{Nothing, Base.IdDict{Module, Base.Dict{Symbol, Cassette.BindingMeta}}} where P<:Cassette.AbstractPass where T<:Union{Nothing, Cassette.Tag{N, X, E} where E where X where N<:Cassette.AbstractContextName} where M where N<:Cassette.AbstractContextName, Any...) in module Cassette at /home/alir/.julia/packages/Cassette/IwsFs/src/overdub.jl:550 overwritten in module GPUifyLoops at /home/alir/.julia/packages/Cassette/IwsFs/src/overdub.jl:550.
WARNING: Method definition overdub(Cassette.Context{N, M, T, P, B, H} where H<:Union{Cassette.DisableHooks, Nothing} where B<:Union{Nothing, Base.IdDict{Module, Base.Dict{Symbol, Cassette.BindingMeta}}} where P<:Cassette.AbstractPass where T<:Union{Nothing, Cassette.Tag{N, X, E} where E where X where N<:Cassette.AbstractContextName} where M where N<:Cassette.AbstractContextName, Any...) in module Cassette at /home/alir/.julia/packages/Cassette/IwsFs/src/overdub.jl:537 overwritten in module GPUifyLoops at /home/alir/.julia/packages/Cassette/IwsFs/src/overdub.jl:537.
ERROR: LoadError: Could not find CUDA driver library
Stacktrace:
 [1] top-level scope at /home/alir/.julia/packages/CUDAdrv/ADRHQ/src/CUDAdrv.jl:33
 [2] top-level scope at none:2
in expression starting at /home/alir/.julia/packages/CUDAdrv/ADRHQ/src/CUDAdrv.jl:27
┌ Warning: Replacing docs for `Core.nothing :: Union{}` in module `Oceananigans`
└ @ Base.Docs docs/Docs.jl:223
┌ Warning: Replacing docs for `Core.nothing :: Union{}` in module `Oceananigans`
└ @ Base.Docs docs/Docs.jl:223
┌ Warning: Replacing docs for `Core.nothing :: Union{}` in module `Oceananigans`
└ @ Base.Docs docs/Docs.jl:223
┌ Warning: Replacing docs for `Core.nothing :: Union{}` in module `Oceananigans`
└ @ Base.Docs docs/Docs.jl:223
@ali-ramadhan ali-ramadhan added this to the JOSS milestone Aug 22, 2019
@ali-ramadhan ali-ramadhan added cleanup 🧹 Paying off technical debt bug 🐞 Even a perfect program still has bugs and removed cleanup 🧹 Paying off technical debt labels Aug 22, 2019
@ali-ramadhan ali-ramadhan changed the title Supressing error messages Supressing harmless warning and error messages Aug 22, 2019
@ali-ramadhan
Copy link
Member Author

No need to worry about CUDA package errors anymore!

https://discourse.julialang.org/t/cuarrays-cudanative-psa-simplified-package-loading/27897

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Even a perfect program still has bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant