Comments (9)
Most probably the gdrdrv kernel module is either not loaded or not accessible (eg protection flags on the /dev/gdrdrv inode, container environment, etc) on the cluster nodes where your MPI job is run.
from gdrcopy.
Thanks. That sounds the right diagnosis. This is the first time I hear about protection flags (in this context) and couldn't find information about it. Is there any data or parameter that I should be reading to provide a more complete description of the system configuration?
from gdrcopy.
Can I ask you to run two commands and post the results?
ls -alh /dev/gdrdrv
lsmod | grep gdrdrv
You may want to try sudo ./insmod.sh
to reload the driver. The script is in the top directory.
from gdrcopy.
After reloading the driver, I get:
ls -alh /dev/gdrdrv ---> crw-rw-rw-. 1 root root 235, 0 Jul 31 19:31 /dev/gdrdrv
lsmod | grep gdrdrv --->
gdrdrv 17352 0
nvidia 17901608 3 nv_peer_mem,gdrdrv,nvidia_modeset
from gdrcopy.
Can you use gdrcopy now?
from gdrcopy.
Not really: I'm still getting the same error message. I suspect that the issue is some interference (maybe the protection flag that @drossetti mentioned) as the module has always been loaded during the tests. I could try two things:
- Have a similar configuration but w/o loading the NVIDIA_peer_memory
- Create a similar configuration but in a different environment (instance). However, this will take me a few hours as I have to build a few pieces from source
Thanks.
from gdrcopy.
I believe that @drossetti meant ls -alh /dev/gdrdrv ---> crw-rw-rw-. 1 root root 235, 0 Jul 31 19:31 /dev/gdrdrv
. Your user needs read and write permissions to /dev/gdrdrv. In your case, the flags are set for all users, so that should not be your issue.
You mentioned that the error occurs when you ran MPI. Is it possible that gdrdrv is not loaded properly on some nodes?
If you have verified that and the error is still persisted, can I ask you to enable the debug mode and post the logs here?
- Edit insmod.sh. Change line 28
sudo /sbin/insmod gdrdrv/gdrdrv.ko dbg_enabled=0 info_enabled=0
tosudo /sbin/insmod gdrdrv/gdrdrv.ko dbg_enabled=1 info_enabled=1
. - On another terminal, run
dmesg -w
. You should see more lines show up after you run the following steps. - Do
sudo ./insmod.sh
. export GDRCOPY_ENABLE_LOGGING=1
export GDRCOPY_LOG_LEVEL=1
- Run your MPI. Remember to use
mpirun -x GDRCOPY_ENABLE_LOGGING -x GDRCOPY_LOG_LEVEL <the rest of the command>
so that the environment variables are properly passed to your mpi environment. - Post the log from gdrcopy.
- Post the log from dmesg. Only what shows up after the step 2 is fine.
from gdrcopy.
Sorry about the delay as I'm troubleshooting several things. gdrcopy is running in a single node (1 vCPU + 1 GPU). I believe that the gdr error message can be avoided by including the flag MV2_GPUDIRECT_GDRCOPY_LIB=/home/ody/gdrcopy/libgdrapi.so (not sure why gdrcopy didn't install at /opt as specified but that is a different question). The dmesg output now reads:
[ 2058.859349] gdrdrv:minor=0
[ 2060.863156] gdrdrv:closing
I intend on building a new system tomorrow and will re-test everything. Accordingly, I'll post any update asap and will close the ticket if the issue was simply caused by not specifying the library at the time of initializing the MPI job. Thanks.
from gdrcopy.
It seems that declaring the flag MV2_GPUDIRECT_GDRCOPY_LIB as the specific subdirectory & library solves the problem ($LD_LIBRARY_PATH had the subsirectory so I'm unsure what was originating the error). Another issue came up while building UCX but I'm closing this ticket and will open a different one if necessary. Thank you for the help.
from gdrcopy.
Related Issues (20)
- Facing issue when installing HOT 1
- Ubuntu 22 - dpkg: error processing package gdrdrv-dkms:amd64 (--install) during installation of gdrcopy HOT 3
- Why D2H is relatively slower? HOT 2
- Query: Confusion about sudo requirement HOT 3
- thinking about working with CUDA async API
- gdrcopy_sanity failed when GPU Compute Mode is set to EXCLUSIVE HOT 1
- Unable to compile GDRCOPY v2.4 HOT 2
- Minimal steps to install gdrdrv driver only please HOT 6
- Fail to access mapped memory from CPU side(Fail data_validation tests) HOT 14
- tests build failing when check.h is not available HOT 1
- How to understand the file "nv-p2p-dummpy.c" HOT 3
- Driver flavor detection fails for 545 series HOT 2
- bad performance(compare with cuMemcpy) on x86 system HOT 3
- GDRCopy 2.4 on Centos7 failing build of RPM packages HOT 2
- Increasing utilization - gdrcopy_copybw HOT 3
- Improve the error report of gdrcopy_pplat when the CUDA kernel cannot be launched
- Safe Mounting of /dev/gdrdrv in a kubernetes environment - HostPath appears to fail HOT 10
- How to effectively test if gdrcopy is enabled using Real world ML workload ? HOT 2
- Can't make with Intel Compiler HOT 4
- MAINT: gdr_unmap segfault on master branch via NVSHMEM 2.10.1 on Cray Slingshot 11 with cuFFTMp HOT 22
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 gdrcopy.