GithubHelp home page GithubHelp logo

Comments (1)

anguyen216 avatar anguyen216 commented on July 22, 2024

So I figured out a solution for this. At the time of writing this, Google Colab default CUDA version is 10.1 and python is 3.7; I downgrade the tensorflow on Colab to 1.15.2 so it's more compatible with CUDA 10.1 and the code written in this repo using the code below

%tensorflow_version 1.x
import sys
import tensorflow
print(tensorflow.__version__)

Also need to install gcc/g++ before I can run makefile

!apt-get install -qq gcc-5 g++-5 -y
!ln -s /usr/bin/gcc-5 
!ln -s /usr/bin/g++-5 

!sudo apt-get update
!sudo apt-get upgrade

The first three lines of the makefile can be edit as below (this is the path/directory on Google Colab; not sure if you can manually change this or that if you want to/should do that)

nvcc = /usr/local/cuda/bin/nvcc
cudalib =  /usr/local/cuda/lib64
tensorflow = /usr/local/lib/python3.6/dist-packages/tensorflow/include

then after mounting the Google Drive and change directory to makefile and cpp files location, I run make as below

%cd /content/drive/My\ Drive/path/to/makefile/
!make

and voila, it worked like a charm. Leave this here in case someone interested in doing the same thing as I'm doing right now in the future and got stuck :)

from latent_3d_points.

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.