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
infiniband-diags: init at 2.0.0 #36152
Conversation
Unfortunately I do not have access to IB hardware at the moment. |
@GrahamcOfBorg build infiniband-diags |
Failure on aarch64-linux (full log) Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Partial log (click to expand)
|
Success on x86_64-linux (full log) Partial log (click to expand)
|
check_lft_balance.pl wants perl in buildInputs at least. |
After generating an
apparently from
So, I may need to get an IB switch before I can test that properly... fortunately, they're not too expensive. 😄 |
There is ibsim, which can be partially used to simulate an IB fabric (https://github.com/markuskowa/nixpkgs/blob/ofed/pkgs/os-specific/linux/ibsim/default.nix). |
export CFLAGS="-I${opensm}/include/infiniband" | ||
./autogen.sh | ||
''; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend adding the following code. When I tried to package it the perl based executables failed to start
without setting PERL5LIB
.
postInstall = ''
rm -r $out/var
'';
postFixup = ''
for pls in `find $out/bin -name "*.pl"`; do
echo "wrapping $pls"
wrapProgram $pls --prefix PERL5LIB : "$out/lib/perl5/site_perl"
done
'';
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. FWIW, the approach in perl-modules seems a little nicer, but it should ideally be factored out into a separate function like wrapProgram or patchShebangs. (Though I'm not sure how often it would be useful outside of actual perl packages...)
sha256 = "06x8yy3ly1vzraznc9r8pfsal9mjavxzhgrla3q2493j5jz0sx76"; | ||
}; | ||
|
||
nativeBuildInputs = [ autoconf automake libtool pkgconfig ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add perl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be perl
in buildInputs
not enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I missed it. buildInputs is the right place.
I think everything is working at least to some extent... Some tools provide me useful information, some output nothing but exit(0), and some I only tested far enough to see they print a help message.
Doesn't seem as low-latency as I was expecting though... 🤷♂️ |
@GrahamcOfBorg build infiniband-diags |
Failure on x86_64-darwin (full log) Partial log (click to expand)
|
Success on x86_64-linux (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
Motivation for this change
Tools for InfiniBand
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)Executables tested (some quite minimally):
I'm only just learning about these tools though, so testing is minimal at best...
@markuskowa I saw you packaged rdma-core. Do you happen to have IB hardware to test on?
cc @Mic92