Giter Site home page Giter Site logo

Comments (6)

panosk avatar panosk commented on June 8, 2024 1

Hi,

There is an extra blank space in front of Common here:

-DCUDA_ARCH_LIST=" Common"

Remove it and try again.

from ctranslate2.

panosk avatar panosk commented on June 8, 2024 1

Ignore these warnings, that's not the problem. Check carefully your variables. I see you are setting

set CTRANSLATE_ROOT=C:\Users\username\Downloads\Ctranslate2

but in the CMake command you are defining

-DCMAKE_INSTALL_PREFIX=%CTRANSLATE2_ROOT%

Also, try one step at a time, try to only build without install:

cmake --build . --config Release --parallel 6

from ctranslate2.

prasad-pr-20 avatar prasad-pr-20 commented on June 8, 2024

HI @panosk,
Thanks for the quick reply.
Upon fixing the space in the flag DCUDA_ARCH_LIST param, the cmake works, but the cmake build kind of goes into infinite loop and the build never completes.
I mostly observe these warnings such as Command line warning D9025: overriding '/W3' with '/W4' [CTranslate2\build\ctranslate 2.vcxproj]
Command used for build is cmake --build . --target install --config Release --parallel 6
Any suggestions. Thanks again.

from ctranslate2.

prasad-pr-20 avatar prasad-pr-20 commented on June 8, 2024

Thanks @panosk for pointing it out. I did as suggested. Yet when I perform a fresh cmake, I do get this warning
CMake Warning at CMakeLists.txt:641 (target_link_libraries): Target "ctranslate2" requests linking to directory "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.4/lib". Targets may link only to libraries. CMake is dropping the item..

And I'm still facing the same situation where the build never completes. Any thoughts on the same.

from ctranslate2.

panosk avatar panosk commented on June 8, 2024

The message is self-explanatory as you are defining -DCUDNN_LIBRARY="%CUDA_PATH%\lib" as a library but it's a directory. Try to simplify your CMake command. If you have installed everything properly (oneAPI, CUDA, etc), then all paths should already be set in your system and you don't have to set them again in the CMake command. Try this for example (make sure to first set CTRANSLATE2_ROOT correctly as the installation directory):

cmake -DCMAKE_INSTALL_PREFIX=%CTRANSLATE2_ROOT% -DBUILD_CLI=OFF -DWITH_DNNL=ON -DWITH_CUDA=ON -DWITH_CUDNN=ON -DCUDA_DYNAMIC_LOADING=ON ..

from ctranslate2.

prasad-pr-20 avatar prasad-pr-20 commented on June 8, 2024

Thank you @panosk. Reducing the number of flags being passed helped in fixing the issue. Also, I wasn't using CUDA. So removing those flags also helped.

from ctranslate2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.