-
Notifications
You must be signed in to change notification settings - Fork 762
{mpi}[GCC/11.3.0] OpenMPI v4.1.4 #15426
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
Merged
boegel
merged 7 commits into
easybuilders:develop
from
jfgrimm:20220504130632_new_pr_libevent2112
May 28, 2022
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7ca21f5
adding easyconfigs: libevent-2.1.12-GCCcore-11.3.0.eb, libfabric-1.15…
jfgrimm 6ad3915
split libfabric, libevent, UCX, PMIx into other PRs
jfgrimm 5af7506
add OpenMPI internal cuda patch
jfgrimm c52b082
update patch, (pre-)configopts to match #15528
jfgrimm 080edcd
bump to 4.1.4 release, and update patches to include CUDA performance…
jfgrimm 35869ca
remove OpenMPI release candidate
jfgrimm 156e01d
Merge branch 'develop' of https://github.com/easybuilders/easybuild-e…
boegel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
93 changes: 93 additions & 0 deletions
93
easybuild/easyconfigs/o/OpenMPI/OpenMPI-4.1.1_build_with_internal_cuda_header.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| Allow building Open MPI with --with-cuda=internal, by providing an | ||
| internal minimal cuda.h header file. This eliminate the CUDA | ||
| (build)dependency; as long as the runtime CUDA version is 8.0+, | ||
| libcuda.so will be dlopen'ed and used successfully. | ||
|
|
||
| Author: Bart Oldeman <[email protected]> | ||
| --- openmpi-4.1.3.orig/config/opal_check_cuda.m4 2022-03-31 16:04:13.000000000 +0000 | ||
| +++ openmpi-4.1.3/config/opal_check_cuda.m4 2022-05-04 17:37:57.576260311 +0000 | ||
| @@ -45,6 +45,12 @@ | ||
| # macro as that would error out after not finding it in the first directory. | ||
| # Note that anywhere CUDA aware code is in the Open MPI repository requires | ||
| # us to make use of AC_REQUIRE to ensure this check has been done. | ||
| +opal_check_cuda_internal="" | ||
| +AS_IF([test "$with_cuda" = "internal"], | ||
| + [AC_MSG_RESULT([internal support requested]) | ||
| + with_cuda="${OPAL_TOP_SRCDIR}/opal/mca/common/cuda/cuda" | ||
| + opal_check_cuda_internal=" (internal)" | ||
| + ]) | ||
| AS_IF([test "$with_cuda" = "no" || test "x$with_cuda" = "x"], | ||
| [opal_check_cuda_happy="no" | ||
| AC_MSG_RESULT([not set (--with-cuda=$with_cuda)])], | ||
| @@ -124,7 +130,7 @@ | ||
| CUDA_SUPPORT=0 | ||
| fi | ||
|
|
||
| -OPAL_SUMMARY_ADD([[Miscellaneous]],[[CUDA support]],[opal_cuda], [$opal_check_cuda_happy]) | ||
| +OPAL_SUMMARY_ADD([[Miscellaneous]],[[CUDA support]],[opal_cuda], [$opal_check_cuda_happy$opal_check_cuda_internal]) | ||
|
|
||
| AM_CONDITIONAL([OPAL_cuda_support], [test "x$CUDA_SUPPORT" = "x1"]) | ||
| AC_DEFINE_UNQUOTED([OPAL_CUDA_SUPPORT],$CUDA_SUPPORT, | ||
| --- openmpi-4.1.3.orig/opal/mca/common/cuda/cuda/cuda.h 1970-01-01 00:00:00.000000000 +0000 | ||
| +++ openmpi-4.1.3/opal/mca/common/cuda/cuda/cuda.h 2022-05-04 18:52:14.991300184 +0000 | ||
| @@ -0,0 +1,60 @@ | ||
| +/* This header provides minimal parts of the CUDA Driver API, without having to | ||
| + rely on the proprietary CUDA toolkit. | ||
| + | ||
| + References (to avoid copying from NVidia's proprietary cuda.h): | ||
| + https://github.com/gcc-mirror/gcc/blob/master/include/cuda/cuda.h | ||
| + https://github.com/Theano/libgpuarray/blob/master/src/loaders/libcuda.h | ||
| + https://github.com/CPFL/gdev/blob/master/cuda/driver/cuda.h | ||
| + https://github.com/CudaWrangler/cuew/blob/master/include/cuew.h | ||
| +*/ | ||
| + | ||
| +#define CUDA_VERSION 8000 | ||
| + | ||
| +typedef void *CUcontext; | ||
| +typedef int CUdevice; | ||
| +#if defined(__LP64__) || defined(_WIN64) | ||
| +typedef unsigned long long CUdeviceptr; | ||
| +#else | ||
| +typedef unsigned CUdeviceptr; | ||
| +#endif | ||
| +typedef void *CUevent; | ||
| +typedef void *CUstream; | ||
| + | ||
| +typedef enum { | ||
| + CUDA_SUCCESS = 0, | ||
| + CUDA_ERROR_NOT_INITIALIZED = 3, | ||
| + CUDA_ERROR_DEINITIALIZED = 4, | ||
| + CUDA_ERROR_ALREADY_MAPPED = 208, | ||
| + CUDA_ERROR_NOT_READY = 600, | ||
| +} CUresult; | ||
| + | ||
| +enum { | ||
| + CU_EVENT_DISABLE_TIMING = 0x2, | ||
| + CU_EVENT_INTERPROCESS = 0x4, | ||
| +}; | ||
| + | ||
| +enum { | ||
| + CU_IPC_MEM_LAZY_ENABLE_PEER_ACCESS = 0x1, | ||
| +}; | ||
| + | ||
| +typedef enum { | ||
| + CU_POINTER_ATTRIBUTE_CONTEXT = 1, | ||
| + CU_POINTER_ATTRIBUTE_MEMORY_TYPE = 2, | ||
| + CU_POINTER_ATTRIBUTE_SYNC_MEMOPS = 6, | ||
| + CU_POINTER_ATTRIBUTE_BUFFER_ID = 7, | ||
| + CU_POINTER_ATTRIBUTE_IS_MANAGED = 8, | ||
| +} CUpointer_attribute; | ||
| + | ||
| +typedef enum { | ||
| + CU_MEMORYTYPE_HOST = 0x01, | ||
| +} CUmemorytype; | ||
| + | ||
| +typedef struct CUipcEventHandle CUipcEventHandle; | ||
| + | ||
| +#define CU_IPC_HANDLE_SIZE 64 | ||
| +typedef struct CUipcMemHandle_st { | ||
| + char reserved[CU_IPC_HANDLE_SIZE]; | ||
| +} CUipcMemHandle; | ||
| + | ||
| +CUresult cuPointerGetAttributes (unsigned int numAttributes, | ||
| + CUpointer_attribute *attributes, void **data, CUdeviceptr ptr); |
44 changes: 44 additions & 0 deletions
44
easybuild/easyconfigs/o/OpenMPI/OpenMPI-4.1.4rc1-GCC-11.3.0.eb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| name = 'OpenMPI' | ||
| version = '4.1.4rc1' | ||
|
|
||
| homepage = 'https://www.open-mpi.org/' | ||
| description = """The Open MPI Project is an open source MPI-3 implementation.""" | ||
|
|
||
| toolchain = {'name': 'GCC', 'version': '11.3.0'} | ||
|
|
||
| source_urls = ['https://www.open-mpi.org/software/ompi/v%(version_major_minor)s/downloads'] | ||
| sources = [SOURCELOWER_TAR_BZ2] | ||
| patches = ['OpenMPI-4.1.1_build_with_internal_cuda_header.patch'] | ||
jfgrimm marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| checksums = [ | ||
| '46169edd9cf8366608684e5c6a342650b2393d46c9f9a380add8e09f1f8001de', # openmpi-4.1.4rc1.tar.bz2 | ||
| # OpenMPI-4.1.1_build_with_internal_cuda_header.patch | ||
| '1ceb82b19f62da2525357debaae694d7751b6352adae7ffa55c71e19a4d7101c', | ||
| ] | ||
|
|
||
| builddependencies = [ | ||
jfgrimm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ('pkgconf', '1.8.0'), | ||
| ('Perl', '5.34.1'), | ||
| ('Autotools', '20220317'), | ||
| ] | ||
|
|
||
| dependencies = [ | ||
| ('zlib', '1.2.12'), | ||
| ('hwloc', '2.7.1'), | ||
| ('libevent', '2.1.12'), | ||
| ('UCX', '1.12.1'), | ||
| ('libfabric', '1.15.1'), | ||
| ('PMIx', '4.1.2'), | ||
| ('UCC', '1.0.0'), | ||
| ] | ||
|
|
||
| preconfigopts = './autogen.pl --force && ' | ||
|
|
||
| configopts = '--with-cuda=internal ' | ||
|
|
||
| # disable MPI1 compatibility for now, see what breaks... | ||
| # configopts += '--enable-mpi1-compatibility ' | ||
|
|
||
| # to enable SLURM integration (site-specific) | ||
| # configopts += '--with-slurm --with-pmi=/usr/include/slurm --with-pmi-libdir=/usr' | ||
|
|
||
| moduleclass = 'mpi' | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.