Category Archive: Technical

Oct 16

Saving Space in a Latex Manuscript

Adhering to page-limits for conference submissions can sometimes be extremely painful. Cutting down on text is not always the best option. Illustrated below are some commands which can help save space via formatting in latex especially w.r.t. figures and tables. \floatsep: space left between floats in a single column. \textfloatsep: space between last top float …

Continue reading »

Oct 04

Embedding OpenCL Kernel Files in the Application on Windows

OpenCL kernel files are often a hindrance in writing generic code because they lead to the use of absolute paths in the application. One can overcome this issue on Linux by using relative paths. However on Windows, visual studio is not very friendly to the use of relative paths. One way to solve this problem …

Continue reading »

Jul 17

How to install Windows on a system having a Linux installation

Below are the steps enumerated on how to install Windows on a system with Linux installation (the steps apply to Ubuntu for sure and may/may not work for other flavors of Linux) – Create a live Linux installation on a USB from http://www.linuxliveusb.com/ Boot from the USB Linux-live installation and create a new partition for …

Continue reading »

Jul 03

Grep for Multiple Words

You can grep for two (or more) words at once. For example, create a file containing: One Two Three Four Five Then use the following grep command (the -E option enables extended regular expressions, which lets you use the | as an “or” operator): grep -E ‘One|Two|Three’ file.txt Output is: One Two Three

May 23

Changing CPU frequencies on Linux

CPU frequencies in Linux (Ubuntu specifically) can be temporarily modified by writing to the “scaling_governor”  in – /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor One needs to be root to be able to write to this file. The available governors can be found by – cat s/ys/devices/system/cpu/cpu1/cpufreq/scaling_available_governors The available governors are – conservative ondemand userspace powersave performance. By default, the governor …

Continue reading »

Dec 07

How to build a linux kernel (Ubuntu)

Create a .config file for your new kernel using the config file of your existing kernel. # cp /boot/<config-kernel_version_#> <kernel_dir>/.config If the .config file is modified using an editor like vim, etc, do # make oldconfig The kernel configuration can also be modified by # make menuconfig Make changes and then save and exit. To …

Continue reading »

Dec 07

Running OpenCL applications remotely on AMD GPUs

AMD’s OpenCL implementation relies on CAL to manage the AMD GPU for general-purpose computations. AMD CAL uses existing API hooks into the display driver to access the GPU. For doing so, CAL needs to have direct access to the display driver. When the applications are run locally on the graphics console, CAL has direct access …

Continue reading »

Dec 07

Log kernel messages on a remote machine in Linux (Ubuntu).

Netconsole can be used to transmit the kernel messages on the sender to the receiver. Netconsole is a kernel module that logs kernel printk messages over UDP allowing debugging of problems where disk logging fails. Prerequisites – IP address of the receiver MAC address of the receiver A port on the receiver IP address of …

Continue reading »