Go to the Google colab and click on New Notebook.
Click on the Runtime menu
and then select the Change runtime type
option.
Set the Hardware accelerator
option to the GPU
.
Run the following commands
# Check the nvcc version.
!nvcc --version
# Install the NVCC Plugin for Jupyter notebook.
!pip install git+git://github.com/andreinechaev/nvcc4jupyter.git
# Load the above extension in the notebook.
%load_ext nvcc_plugin
Note: Each command should be executed on a different cell.
Now copy the given code in a new cell and run the cell to execute your code.
%%cu
#include <iostream>
int main() {
printf("CUDA is working\n");
return 0;
}
// Here, only a simple C program has been executed.
// All the other complex CUDA programs can be executed in the
// Google colab environment by following these instructions.
Note: You have to add %%cu
on the first line of your notebook cell where your C/C++ code is written.
In this way, we can easily run CUDA C/C++ programs on the Google Colab platform for free. We hope this article helps you in your AI programming journey.
]]>MERN stack combines four key technologies: MongoDB, Express, React, and Node.js.
The Odin Project is an online open-source programming course founded in 2013 by Erik Trautman. This course provides a complete path for beginner students to become full-stack web developers. It has 1000 hours of content related to programming that provides students with enough practice and knowledge to be hired as web developers. This course provides two paths. The student starts by enrolling in the foundations course at the beginning of each path. After completing the foundation course the student can either follow the full-stack path with Ruby on Rails (RoR) or JavaScript(MERN). The students also learn version control using git in both paths that prepare them for collaborative development in the future.
This is an online course provided by the Department of Computer Science of the University of Helsinki. This course provides students with the knowledge to build modern web applications using JavaScript. The main objective behind this course is to help the students to learn to code modern single page applications with React.js that consume REST APIs built with Node.js. This course also includes a chapter on GraphQL an alternative to REST APIs. This course also provides students with a certificate after completion of the course.
Free Code Camp is a nonprofit community that helps learns to code by building projects. It was founded by Quincy Larson and is now backed by donations and managed by the open-source community. It is an interactive course where students learn by reading and completing interactive coding challenges. The course is divided into various sections. The students receive a certificate after completing each section. I personally have used freeCodeCamp to develop a career in full-stack web development.
While this may sound unconventional, but learning resources provided by Mozilla Developer Network are excellent resources for getting started into full-stack development using MERN. This resource is not a full course but can be used as an alternative material for learning the MERN stack. It is also built and supported by the open-source community.
While most of the above course contains all the resources to make you a proficient MERN stack developer, they also contain extra lessons that are not required to become a MERN stack developer. So I suggest you go through these frontend and backend road-maps and follow the path according to the career you want to pursue.
]]>