Thread Cooperation | Learn CUDA

Thread Cooperation Nowadays, I try to learn CUDA. I follow some books for that. In this post, I use CUDA BY EXAMPLE An introduction to General-Purpose GPU Programming book which is written by Jason Sanders and Edward Kandrot. In this section, I try to learn…

Parallel Programming in CUDA C | Learn CUDA

Parallel Programming in CUDA C Nowadays, I try to learn CUDA. I follow some books for that. In this post, I use CUDA BY EXAMPLE An introduction to General-Purpose GPU Programming book which is written by Jason Sanders and Edward Kandrot. In this section, I…

Device Info Query with CUDA | Xavier

Device Info Query In this post, I show how can query to device information with Cuda. In this post, I will use the NVDIA Jetson Xavier Device. However, the below code can run any compatible device with CUDA. Xavier Specification is:

PinBall Game (Atmega 32)

Pinball Game Introduction: Our aim in this project is designing a pinball machine that can be played in automatic mode and manual mode. In manual mode player can control the flippers with buttons, in automatic mode game play itself automatically. Setup has consist of ldr,…

File Operations in C

Task1 Write a program that joins the two sorted files to an output file such that the resulting file is also sorted. Your program should read the names of the files to be joined from the command line, as well as the name of the…

Using fprintf() with different format (%*s.*lf)

Writing a program that outputs PI in different formats, as given below (and also in PIs.txt). You can use M_PI from math.h. Codes with fewer lines than 30 will get extra marks (my code is 21 lines excluding comments). Like Bellow Figure. I use the %*s…

Printing samples of a sinusoidal signal using C

Samples of a sinusoidal Writing a program that prints samples of a sinusoidal signal at f0 sampled at fsample with peak amplitude A and phase P, for two periods (T0). Take A, f0, P, and fsample from command-line as arguments, as follows: ProgramName A f_0…