Coder Social home page Coder Social logo

libosmcomp.so calls exit about opensm HOT 6 CLOSED

linux-rdma avatar linux-rdma commented on June 26, 2024
libosmcomp.so calls exit

from opensm.

Comments (6)

hnrose avatar hnrose commented on June 26, 2024

(I think that) the only occurrence is in complib_init function which returns void ;-(

complin_init function API could be changed to return status rather than void and fix internal uses of this function to exit on bad status but that breaks out of tree uses.

A new function (complib_init_v2) that returns status could easily be added and change all internal uses to that as well as deprecate the old function but old function wouldn't be removed for several releases.

To me latter approach is least bad or do you see other/better approach ?

from opensm.

bdrung avatar bdrung commented on June 26, 2024

Besides complib_init, __hca_sim_get_num_cas calls exit() which is used by osm_vendor_get_all_port_attr, osm_vendor_get_guid_ca_and_port, and osm_vendor_get_guid_by_ca_and_port.

The latter approach sound better to me as well.

from opensm.

hnrose avatar hnrose commented on June 26, 2024

Implemented patch to deprecate complib_init and add complib_init_v2. Sent to you for review.

The other routines you mentioned are in libvendor. I will work on those tomorrow in a separate patch.

from opensm.

hnrose avatar hnrose commented on June 26, 2024

Fixes are pretty simple for libvendor/osm_vendor_mlx_hca_sim.c and libvendor/osm_vendor_mlx_sim.c but not sure if it's worth doing this as ibutils (which contains ibmgtsim) has been deprecated for quite some time.

from opensm.

hnrose avatar hnrose commented on June 26, 2024

Just sent patch with the libvendor changes.

from opensm.

bdrung avatar bdrung commented on June 26, 2024

Reviewed and test-build both patches. They look good to me.

from opensm.

Related Issues (14)

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.