cuda-quantum icon indicating copy to clipboard operation
cuda-quantum copied to clipboard

activate_custom_mpi.sh: do not link against mlir

Open mitchdz opened this issue 7 months ago • 7 comments

See https://github.com/NVIDIA/cuda-quantum/issues/2892

It might be worth it to further trim down what the ELF file links against, but the other files seem benign for now.

cudaq@2570547-lcedt:/opt/nvidia/cudaq/distributed_interfaces$ readelf -d libcudaq_distributed_interface_mpi.so  | grep cudaq
 0x000000000000001d (RUNPATH)            Library runpath: [/usr/local/llvm/lib:/opt/nvidia/cudaq/lib:/opt/nvidia/cudaq/lib/plugins:/opt/nvidia/cudaq/distributed_interfaces:/usr/local/openmpi/lib64:/usr/local/openmpi/lib]
 0x0000000000000001 (NEEDED)             Shared library: [libcudaq.so]
 0x0000000000000001 (NEEDED)             Shared library: [libcudaq-common.so]
 0x0000000000000001 (NEEDED)             Shared library: [libcudaq-ensmallen.so]
 0x0000000000000001 (NEEDED)             Shared library: [libcudaq-nlopt.so]
 0x0000000000000001 (NEEDED)             Shared library: [libcudaq-spin.so]
 0x0000000000000001 (NEEDED)             Shared library: [libcudaq-operator.so]
 0x0000000000000001 (NEEDED)             Shared library: [libcudaq-comm-plugin.so]
 0x0000000000000001 (NEEDED)             Shared library: [libcudaq-pyscf.so]
 0x0000000000000001 (NEEDED)             Shared library: [libcudaq-em-default.so]
 0x0000000000000001 (NEEDED)             Shared library: [libcudaq-platform-default.so]

mitchdz avatar May 13 '25 14:05 mitchdz

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

copy-pr-bot[bot] avatar May 13 '25 14:05 copy-pr-bot[bot]

/ok to test 63ca191

Command Bot: Processing...

mitchdz avatar May 13 '25 14:05 mitchdz

/ok to test 8c3a3c9

Command Bot: Processing...

mitchdz avatar May 13 '25 15:05 mitchdz

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions[bot] avatar May 13 '25 15:05 github-actions[bot]

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions[bot] avatar May 13 '25 17:05 github-actions[bot]

/ok to test 591c725

Command Bot: Processing...

mitchdz avatar May 14 '25 17:05 mitchdz

/ok to test c5fb8df

Command Bot: Processing...

mitchdz avatar May 20 '25 00:05 mitchdz

I will modify this PR shortly to instead of just dropping the mlir links, add a new flag to nvq++.in. Something like --disable-cudaq-links. This is ultimately what I'd like to do anyways, so let's just do it right the first time rather than having the --disable-mlir-links as a bandaid.

mitchdz avatar May 20 '25 01:05 mitchdz

/ok to test 69ae33c

Command Bot: Processing...

mitchdz avatar May 27 '25 18:05 mitchdz