Graphical connections to Ubuntu Linux from Windows

Suppose that you have a Windows system and that you want to connect to a remote Linux Ubuntu machine; suppose that you also want to run some applications of that machine, having at disposal also their graphical interface. First step: configure the Windows system Download Putty. Install Xming. Use a simple google search for “sourceforge xming x server windows”. When asking for the fonts to be installed in the “Custom installation” stage, we would recommend to install all the fonts. Seco...
More

Tricks and Tips – Using omp_set_num_threads and omp_get_num_threads

When programming with OpenMP, it should be noticed that omp_get_num_threads() returns 1 in sequential sections of the code. Accordingly, even if setting, by omp_set_num_threads(), an overall number of threads larger than 1, any call to omp_get_num_threads() will return 1, unless we are in a parallel section. The example on our GitHub website tries to clarify this point.
More

A thing to care about when passing a struct to a CUDA kernel

Structures can be passed by values to CUDA kernels. However, some care should be devoted to set up a proper destructor since the destructor is called at exit from the kernel. Consider this example with the uncommented destructor and do not pay too much attention on what the code actually does. If you run that code, you will receive the following output: Calling destructor Counting in the locked case: 512 Calling destructor GPUassert: invalid device pointer D:/Project/passStructToKer...
More

Generate a STY triangular spherical mesh in Blender

Please, refer to the “Removing starting cube and camera in Blender” post to obtain a clean Blender startup. Refer also to “Generate a STY triangular planar mesh in Blender” for further details. Shift + s -> Cursor to Center Lower horizontal command bar. Add -> Mesh -> UV sphere Click on the “+” which is in the upper right corner of the screen. The “+” appears on the left corner with respect to the right vertical command bar. After having clicked on “+”, a new menu will appear. ...
More

Generate a STY triangular cylindrical mesh in Blender

Please, refer to the “Removing starting cube and camera in Blender”post to obtain a clean Blender startup. Refer also to “Generate a STY triangular planar mesh in Blender” for further details. Shift + s -> Cursor to Center Lower horizontal command bar. Add -> Mesh -> Cylinder Click on the “+” which is in the upper right corner of the screen. The “+” appears on the left corner with respect to the right vertical command bar. After having clicked on “+”, a new menu will appear. ...
More

Generate a STY triangular planar mesh in Blender

Please, refer to the “Removing starting cube and camera in Blender” post to obtain a clean Blender startup. Shift + s -> Cursor to Center Lower horizontal command bar. Add -> Mesh -> Plane Click on the “+” which is in the upper right corner of the screen. The “+” appears on the left corner with respect to the right vertical command bar. After having clicked on “+”, a new menu will appear. At this point, the plate belongs to the xy plane of the red(x)-green(y)-blue(z) coordin...
More

Removing starting cube and camera in Blender

Immediately after having launched Blender, move the mouse arrow on the cube, right click on it, press the “delete” button and click “delete” on the dialog box. Similarly, move the mouse arrow on the camera, right click on it, press the “delete” button and click “delete” on the dialog box. Please, note that removing starting cube and camera is possible in the “Object mode” status (see lower horizontal bars), which is the status you will find at the startup of Blender, and not in the “Edit mode...
More