Code Monkey home page Code Monkey logo

Comments (12)

alazzaro avatar alazzaro commented on July 23, 2024 1

@alazzaro , could you point me to all the functions that DBCSR is using but is deprecated now? Is there an error report from CI that I could refer to?

For that, please see @hfp issue of today (#810)

from dbcsr.

alazzaro avatar alazzaro commented on July 23, 2024 1

Oh, oh, I didn't pay much attention... #810 is related to CUDA...
Then, for rocm, the deprecated functions are:

https://github.com/cp2k/dbcsr/actions/runs/9636368793/job/26574254231

Search for "deprecated and may"...

from dbcsr.

dev-zero avatar dev-zero commented on July 23, 2024 1

Are your comments meant for this issue?

yes, but it seems I omitted some part: by passing the include dirs for external API/frameworks with -isystem, at least gcc should not be emitting warnings coming from those headers.

from dbcsr.

alazzaro avatar alazzaro commented on July 23, 2024

So, the problem here is that we use FROM rocm/dev-ubuntu-22.04:latest which moved from ROCM 6.0.1 to 6.1.0 and now some HIP functions are deprecated...
I wonder if we should set a tag for ROCM (up to 6.0.2 for example). I don't think we should remove -Werror...
ROCM 6.1 introduced a long list of deprecated functions, however I'm not sure how we should update them... Maybe @gsitaram can help?

@hfp I would say, for the moment, please ignore this problem.

from dbcsr.

alazzaro avatar alazzaro commented on July 23, 2024

@hfp , you can also add -Wno-error=deprecated-declarations for the moment...

from dbcsr.

gsitaram avatar gsitaram commented on July 23, 2024

I'll take a look and get back.

from dbcsr.

gsitaram avatar gsitaram commented on July 23, 2024

Hi @alazzaro, @hfp, I see the following message in the ROCm docs:

On the AMD platform, context management APIs are deprecated as there are better alternate interfaces, such as using hipSetDevice and stream APIs to achieve the required functionality.

On the NVIDIA platform, CUDA supports the driver API that defines "Context" and "Devices" as separate entities. Each context contains a single device, which can theoretically have multiple contexts. HIP initially added limited support for these APIs to facilitate easy porting from existing driver codes.

These APIs are only for equivalent driver APIs on the NVIDIA platform.

Are these functions necessary in DBCSR? Or could we replace them with equivalent hipDevice* functionality?

from dbcsr.

alazzaro avatar alazzaro commented on July 23, 2024

Thanks @gsitaram I have no idea how to answer to your question...
I spent some time to understand how to replace them, but I cannot get it from the AMD documentation...

from dbcsr.

gsitaram avatar gsitaram commented on July 23, 2024

@alazzaro , could you point me to all the functions that DBCSR is using but is deprecated now? Is there an error report from CI that I could refer to?

from dbcsr.

dev-zero avatar dev-zero commented on July 23, 2024

in principle CMake should be adding header files from external packages with -isystem, on the other hand it will then just start failing hard when things are finally being removed

from dbcsr.

dev-zero avatar dev-zero commented on July 23, 2024

moving our docker image to use a tagged upstream and then use something like the pre-commit bot to scan the images periodically might be a better method?

from dbcsr.

hfp avatar hfp commented on July 23, 2024

in principle CMake should be adding header files from external packages with -isystem, on the other hand it will then just start failing hard when things are finally being removed

moving our docker image to use a tagged upstream and then use something like the pre-commit bot to scan the images periodically might be a better method?

Are your comments meant for this issue?

from dbcsr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.