[Bug 1941786] Re: OpenMPI 4.0.3 forgets to link open-pal

2021-08-27 Thread Axel Huebl
There is a patch available in
  https://github.com/open-mpi/ompi/pull/9077
which will be part of OpenMPI 4.0.7

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1941786

Title:
  OpenMPI 4.0.3 forgets to link open-pal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openmpi/+bug/1941786/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1941786] Re: OpenMPI 4.0.3 forgets to link open-pal

2021-08-26 Thread Axel Huebl
Cross-ref GitHub: https://github.com/open-mpi/ompi/issues/9317

** Bug watch added: github.com/open-mpi/ompi/issues #9317
   https://github.com/open-mpi/ompi/issues/9317

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1941786

Title:
  OpenMPI 4.0.3 forgets to link open-pal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openmpi/+bug/1941786/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1941786] [NEW] OpenMPI 4.0.3 forgets to link open-pal

2021-08-26 Thread Axel Huebl
Public bug reported:

Hi,

I am trying to compile a C++ program with CMake 3.16.3 on Ubuntu 20.04
LTS, which ships OpenMPI 4.0.3.

I realized that the
  mpic++ --showme:link
flags forget to link `-lopen-pal`, which is part of the OpenMPI lib dir.
  -pthread -L/usr/lib/x86_64-linux-gnu/openmpi/lib -lmpi_cxx -lmpi

Following that, a CMake CXX program compiled with clang++ that checks for 
`find_package(MPI REQUIRED)` will error out with:
```
-- Found MPI_C: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so (found version 
"3.1") 
-- Could NOT find MPI_CXX (missing: MPI_CXX_WORKS) 
CMake Error at 
/usr/local/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 
(message):
-- Configuring incomplete, errors occurred!
  Could NOT find MPI (missing: MPI_CXX_FOUND CXX) (found version "3.1")
```

The reason for that is in the compile check
```
/opt/rocm/llvm/bin/clang++   -pthread 
CMakeFiles/cmTC_abf94.dir/test_mpi.cpp.o  -o cmTC_abf94  
-Wl,-rpath,/usr/lib/x86_64-linux-gnu/openmpi/lib 
/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so 
/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so 
ld.lld: error: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so: undefined 
reference to opal_class_init_epoch [--no-allow-shlib-undefined]
ld.lld: error: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so: undefined 
reference to opal_list_item_t_class [--no-allow-shlib-undefined]
ld.lld: error: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so: undefined 
reference to opal_class_initialize [--no-allow-shlib-undefined]
ld.lld: error: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so: undefined 
reference to opal_uses_threads [--no-allow-shlib-undefined]
```

where the linker refuses the missing lib and fails the check.

The solution to this is to make sure that
  mpic++ --showme:link
appends
  -lopen-pal
as well.

User-side work-around until fix is applied:
  export LDFLAGS="-lopen-pal"

** Affects: openmpi (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1941786

Title:
  OpenMPI 4.0.3 forgets to link open-pal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openmpi/+bug/1941786/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1913205] [NEW] [libadios-dev] adios.pc file missing on focal+

2021-01-25 Thread Axel Huebl
Public bug reported:

Hi,

on the libadios-dev package lacks the adios.pc file (and adios_config
executable script) on focal and newer.

On bionic, the file is still shipped:
  https://packages.ubuntu.com/bionic/libadios-dev

Can this please be added again?

Thank you for your help,
Axel

** Affects: adios (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1913205

Title:
  [libadios-dev] adios.pc file missing on focal+

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/adios/+bug/1913205/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1865091] [NEW] Backport broken scatter/gather Signatures

2020-02-27 Thread Axel Huebl via ubuntu-bugs
Public bug reported:

Ubuntu 18.04 LTS ships CUDA 9.1.85 which is broken with provided GCC
compilers in a slightly complex way.

By default, the g++ compiler version is 7.4.0, which is not supported by 
CUDA/NVCC 9.1.85.
Next, CUDA/NVCC 9.1.85 should have provided support for g++ 6. But the release 
overlooked an incompatibility with std::tuple which renders this compiler 
combination not useful either:
  https://gist.github.com/ax3l/9489132

Consequently, users that want to use mature C++11/14 features can still switch 
to install a g++-5 package on Ubuntu 18.04 but this compiler has another set of 
bugs in signatures of gather/scatter intrinsics which were fixed in later GCC 
releases. This fix was unfortunately not backported to GCC 5.5 .
  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=76731

In order to make NVCC+GCC work together on Ubuntu 18.04, I would recommend to 
backport the small patches of three intrinsic files with broken signatures to 
the g++-5 (specifically the libgcc-5-dev) packages:
  https://stackoverflow.com/a/50815334/2719194

Thanks a lot for considering,
Axel

** Affects: gcc-5 (Ubuntu)
 Importance: Undecided
 Status: New

** Affects: nvidia-cuda-toolkit (Ubuntu)
 Importance: Undecided
 Status: New

** Also affects: nvidia-cuda-toolkit (Ubuntu)
   Importance: Undecided
   Status: New

** Description changed:

  Ubuntu 18.04 LTS ships CUDA 9.1.85 which is broken with provided GCC
  compilers in a slightly complex way.
  
  By default, the g++ compiler version is 7.4.0, which is not supported by 
CUDA/NVCC 9.1.85.
  Next, CUDA/NVCC 9.1.85 should have provided support for g++ 6. But the 
release overlooked an incompatibility with std::tuple which renders this 
compiler combination not useful either:
-   https://gist.github.com/ax3l/9489132
+   https://gist.github.com/ax3l/9489132
  
- Consequently, users that want to use mature C++11/14 features can still 
switch to install a g++-5 package on Ubuntu 18.04 but this compilers has 
another set of bugs in gather/scatter intrinsics which were fixed in later GCC 
releases. This fix was unfortunately not backported to GCC 5.5 .
-   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=76731
+ Consequently, users that want to use mature C++11/14 features can still 
switch to install a g++-5 package on Ubuntu 18.04 but this compiler has another 
set of bugs in gather/scatter intrinsics which were fixed in later GCC 
releases. This fix was unfortunately not backported to GCC 5.5 .
+   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=76731
  
  In order to make NVCC+GCC work together on Ubuntu 18.04, I would recommend to 
backport the small patches of three intrinsic files with broken signatures to 
the g++-5 (specifically the libgcc-5-dev) packages:
-   https://stackoverflow.com/a/50815334/2719194
+   https://stackoverflow.com/a/50815334/2719194
  
  Thanks a lot for considering!
  Axel

** Description changed:

  Ubuntu 18.04 LTS ships CUDA 9.1.85 which is broken with provided GCC
  compilers in a slightly complex way.
  
  By default, the g++ compiler version is 7.4.0, which is not supported by 
CUDA/NVCC 9.1.85.
  Next, CUDA/NVCC 9.1.85 should have provided support for g++ 6. But the 
release overlooked an incompatibility with std::tuple which renders this 
compiler combination not useful either:
    https://gist.github.com/ax3l/9489132
  
  Consequently, users that want to use mature C++11/14 features can still 
switch to install a g++-5 package on Ubuntu 18.04 but this compiler has another 
set of bugs in gather/scatter intrinsics which were fixed in later GCC 
releases. This fix was unfortunately not backported to GCC 5.5 .
    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=76731
  
  In order to make NVCC+GCC work together on Ubuntu 18.04, I would recommend to 
backport the small patches of three intrinsic files with broken signatures to 
the g++-5 (specifically the libgcc-5-dev) packages:
    https://stackoverflow.com/a/50815334/2719194
  
- Thanks a lot for considering!
+ Thanks a lot for considering,
  Axel

** Description changed:

  Ubuntu 18.04 LTS ships CUDA 9.1.85 which is broken with provided GCC
  compilers in a slightly complex way.
  
  By default, the g++ compiler version is 7.4.0, which is not supported by 
CUDA/NVCC 9.1.85.
  Next, CUDA/NVCC 9.1.85 should have provided support for g++ 6. But the 
release overlooked an incompatibility with std::tuple which renders this 
compiler combination not useful either:
    https://gist.github.com/ax3l/9489132
  
- Consequently, users that want to use mature C++11/14 features can still 
switch to install a g++-5 package on Ubuntu 18.04 but this compiler has another 
set of bugs in gather/scatter intrinsics which were fixed in later GCC 
releases. This fix was unfortunately not backported to GCC 5.5 .
+ Consequently, users that want to use mature C++11/14 features can still 
switch to install a g++-5 package on Ubuntu 18.04 but this compiler has another 
set of bugs in signa

[Bug 1812133] [NEW] libc++abi-dev lacks include

2019-01-16 Thread Axel Huebl via ubuntu-bugs
Public bug reported:

Even after installing libc++-dev and libc++abi-dev, clang can not
compile with `-stdlib=libc++` if it needs to include ``.

The reason lies in a missing include or symlink in cxxabi.h
```
/usr/include/c++/v1/cxxabi.h:21:10: fatal error: '__cxxabi_config.h' file not
  found
#include <__cxxabi_config.h>
 ^~~
1 error generated.
```

That file is located in /usr/include/libcxxabi/

Maybe add a symlink or install it in a different, clang-findable
location?

** Affects: libc++ (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: xenial

** Tags added: xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1812133

Title:
  libc++abi-dev lacks include

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libc++/+bug/1812133/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1706326] Re: Clang CUDA Support Failing

2018-04-27 Thread Axel Huebl via ubuntu-bugs
I'm not sure if invalid is the correct resolution status but the issue
was solved now in the nvidia-cuda-toolkit package. It now installs CUDA
in a monolithic path.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1706326

Title:
  Clang CUDA Support Failing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clang/+bug/1706326/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1706326] Re: Clang CUDA Support Failing

2017-11-27 Thread Axel Huebl
Thank you, that's a great solution! :)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1706326

Title:
  Clang CUDA Support Failing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clang/+bug/1706326/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1706326] [NEW] Clang CUDA Support Failing

2017-07-25 Thread Axel Huebl
Public bug reported:

Hi,

clang 3.9+ supports compiling CUDA C++ files (.cu):
  http://llvm.org/docs/CompileCudaWithLLVM.html#prerequisites

I installed the packages
  - clang-3.9
  - nvidia-cuda-toolkit (8.0)

on Ubuntu 16.04 (via the latest docker image: ubuntu:16.04).

My example file is just any .cu file, e.g. this one:
  https://github.com/ax3l/cpp_snippets/blob/master/cuda_mandelbrot/mandelbrot.cu

If I now run
  clang++ main.cu

or
  clang++ --cuda-path=/usr main.cu

I get the error

  clang: error: cannot find CUDA installation.  Provide its path via
--cuda-path, or pass -nocudainc to build without CUDA includes.

This is the same bug as reported upstream in
  https://bugs.llvm.org/show_bug.cgi?id=26966

due to the "scattered install" of CUDA in Debian/Ubuntu.

Is there a way to fix this from the packaging side?

** Affects: clang (Ubuntu)
 Importance: Undecided
 Status: New

** Affects: nvidia-cuda-toolkit (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: clang cuda

** Also affects: nvidia-cuda-toolkit (Ubuntu)
   Importance: Undecided
   Status: New

** Summary changed:

- CUDA Support Failing
+ Clang CUDA Support Failing

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1706326

Title:
  Clang CUDA Support Failing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clang/+bug/1706326/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs