Hello,
I am trying to compile MAGMA on windows. I am having a problem related to the maximum number of characters. When doing the device linking of the object magma_intermediate_link.obj, NVCC sends an error "command line is too long". I saw this is a problem with cmake deals with CUDA long commands. I created this issue for cmake : https://gitlab.kitware.com/cmake/cmake/issues/19647.
I searched on this forum the same problem, but I found nothing. Does anyone had the same issue?
Best Regards,
Eduardo.
nvcc "command line is too long" on windows
-
- Posts: 6
- Joined: Wed Aug 28, 2019 3:28 am
Re: nvcc "command line is too long" on windows
I haven't seen this, but usually use the Makefile, not CMake. When I use CMake on Windows, I use MS Visual Studio (the free version works fine). I gather you run CMake to configure MAGMA. What build system do you use after configuring with CMake: Makefile, MS Visual Studio, ...?
-mark
-mark
-
- Posts: 6
- Joined: Wed Aug 28, 2019 3:28 am
Re: nvcc "command line is too long" on windows
Hello,
I used the Visual Studio and NMake as the generator. In both the same error.
With NMake, I could break the object maga_intermediate_link.onj in two. This worked fine.
But, when I tried to compile the magma_sparse, I realized there were no symbols being exported. Looking at the code, I realize that there weren't any __declspec and no DEF files. Is there anything I am missing?
I used the Visual Studio and NMake as the generator. In both the same error.
With NMake, I could break the object maga_intermediate_link.onj in two. This worked fine.
But, when I tried to compile the magma_sparse, I realized there were no symbols being exported. Looking at the code, I realize that there weren't any __declspec and no DEF files. Is there anything I am missing?
Re: nvcc "command line is too long" on windows
From a magma/build directory, try:
This assumes CMake >= 3.4.
See https://blog.kitware.com/create-dlls-on ... l-feature/
-mark
Code: Select all
cmake -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE -DBUILD_SHARED_LIBS=TRUE ..
See https://blog.kitware.com/create-dlls-on ... l-feature/
-mark
-
- Posts: 6
- Joined: Wed Aug 28, 2019 3:28 am
Re: nvcc "command line is too long" on windows
Thanks a lot,
Now everything is working.
Now everything is working.