Comments (4)
The problem lies in the two header files, not the provider.
To work-around this problem, use the following patch applied to the prov/cxi/configure.m4
diff --git a/prov/cxi/configure.m4 b/prov/cxi/configure.m4
index ec50e18f3..a73e86e31 100644
--- a/prov/cxi/configure.m4
+++ b/prov/cxi/configure.m4
@@ -46,11 +46,18 @@ AC_DEFUN([FI_CXI_CONFIGURE],[
[
AC_CHECK_HEADER(cxi_prov_hw.h,
[],
- [cxi_happy=0])
+ [cxi_happy=0],
+ [AC_INCLUDES_DEFAULT
+ #include <errno.h>])
AC_CHECK_HEADER(uapi/misc/cxi.h,
[],
- [cxi_happy=0])
+ [cxi_happy=0],
+ [AC_INCLUDES_DEFAULT
+ #include <stdbool.h>
+ #ifndef __user
+ #define __user
+ #endif])
In an upcoming release of the software, SHS 2.2.0, the compilation problem reported in this ticket will be fixed.
from libfabric.
the diff provided has been implemented successfully and is available at: https://github.com/thomasgillis/libfabric/tree/dev-cxi
from libfabric.
The problem lies in the two header files, not the provider.
To work-around this problem, use the following patch applied to the prov/cxi/configure.m4
diff --git a/prov/cxi/configure.m4 b/prov/cxi/configure.m4 index ec50e18f3..a73e86e31 100644 --- a/prov/cxi/configure.m4 +++ b/prov/cxi/configure.m4 @@ -46,11 +46,18 @@ AC_DEFUN([FI_CXI_CONFIGURE],[ [ AC_CHECK_HEADER(cxi_prov_hw.h, [], - [cxi_happy=0]) + [cxi_happy=0], + [AC_INCLUDES_DEFAULT + #include <errno.h>]) AC_CHECK_HEADER(uapi/misc/cxi.h, [], - [cxi_happy=0]) + [cxi_happy=0], + [AC_INCLUDES_DEFAULT + #include <stdbool.h> + #ifndef __user + #define __user + #endif])
In an upcoming release of the software, SHS 2.2.0, the compilation problem reported in this ticket will be fixed.
The main code still does not have this changes. If added manually it fails to build. Any solution for this?
from libfabric.
The full patch should be available here: https://github.com/thomasgillis/libfabric/tree/dev-cxi
Let me know if it doesn't work
from libfabric.
Related Issues (20)
- prov/shm: shm provider claims FI_HMEM cap when there is no hmem ifaces initialized HOT 7
- fi_av_set/coll_av_set: error when trying to create an empty set HOT 1
- prov/efa: unable to register more than 95GB of memory HOT 11
- prov/`verbs;ofi_rxm`: `FI_HMEM` fails to be detected when out of cache
- libfabric 1.20.1 fails to build on Fedora Rahide i686
- [Question] How to specify an optional mr_mode flag in fi_getinfo(..) hints HOT 2
- prov/verbs;ofi_rxm: fi_endpoint call after fork results in guaranteed mlx5 segfault HOT 27
- prov/cxi performance regression in fi_pingpong HOT 4
- fabtests: make source addressing usage more user friendly and universal HOT 5
- [Fabtest] tests are getting fial while running with ./runfabtests.sh but works when running them menually HOT 2
- prov/ofi_rxm Not working, Need core provider, skipping ofi_rxm HOT 6
- Missing data when using `fi_tsendmsg` and `fi_trecvmsg` HOT 1
- prov/cxi: PR#9791 breaks build on LUMI HOT 6
- prov/shm: In-progress send via CMA(iov protocol) blocks following sends HOT 9
- Release 1.21.0
- Release 1.20.2
- prov/psm3: Sometimes doesn't clean up stale shm regions HOT 6
- [ofi 2.0] Make fabtests/benchmarks able to use single CQ per EP HOT 1
- prov/verbs: fi_pingpong does not work over 2nd interface with -61 error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libfabric.