question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

can it work with out GPU?

See original GitHub issue

Can it work without GPU? If yes, what shall be the step for

export CUDA_HOME="/usr/local/cuda"
cd pytorch_binding
python setup.py instal

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vermasrijancommented, Jul 16, 2018

@ryanleary , thanks for sharing these. I tried to work around the resources that you just shared. I was getting the following error on the ‘make’ process: error: unsupported option ‘-fopenmp’ , but solved this by making some changes in the CMakeList.txt. Following are the changes that i made (referred from-https://github.com/SeanNaren/warp-ctc/issues/25): option(DWITH_OMP “compile warp-ctc with openmp.” OFF)

add_definitions(-DCTC_DISABLE_OMP)

#if(NOT WITH_OMP) #add_definitions(-DCTC_DISABLE_OMP) #endif() #if (WITH_OMP) #set(CMAKE_CXX_FLAGS “${CMAKE_CXX_FLAGS} -fopenmp”) #set(CUDA_NVCC_FLAGS “${CUDA_NVCC_FLAGS} -Xcompiler -fopenmp”) #endif()

after this, when i ran the setup.py file (in the pytorch_binding directory), this is what i got: screen shot 2018-07-16 at 3 48 50 pm

And when i tried to import warpctc_pytorch, i got the same error as : No module named ‘warpctc_pytorch._warp_ctc.__warp_ctc’

Maybe I am missing out on something, cant figure it out though.

Thanks!

0reactions
ryanlearycommented, Jul 16, 2018

Have you tried it? The warp-ctc library has a CPU only implementation and the pytorch bindings also support cpu only. If it isn’t working, then there’s some small bug in the build process.

See here for the warp-ctc library https://github.com/SeanNaren/warp-ctc/blob/pytorch_bindings/CMakeLists.txt#L100 “Building shared library with no GPU support” and here for the PyTorch binding: https://github.com/SeanNaren/warp-ctc/blob/pytorch_bindings/pytorch_binding/setup.py#L45 where it’s clear that having GPU support is optional.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can You Run a Computer Without a GPU? Detailed Answer
It is technically possible to game without a GPU. If you're only playing older or less graphically intensive games like MapleStory or Undertale, ......
Read more >
Can i build my gaming PC without a GPU? : r/buildapc - Reddit
You can always build the PC without the graphics card. The gpu just gets stuck into a PCI-E port on the motherboard, no...
Read more >
Can You Run A PC Without A GPU? [Answered] - Technize.com
Yes, a computer can work properly without a graphics card. An integrated graphics card is already built into every computer's processor. It's in ......
Read more >
Can I build my gaming PC without a GPU? - Newegg Insider
It's possible to build a gaming PC without choosing a GPU today. You'll need to jump through some hoops and do your research...
Read more >
Does A PC Need A Graphics Card If It's Not For Gaming?
Not all computers need a graphics card and it's completely 100% possible to get by without one – especially if you're not gaming....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found