While writing programs in pyopencl, we should face the indentation of python and CL. According to the coding convention, python uses 4 spaces as the indentation and C uses 2 spaces as the indentation. So, we may want to configure our IDE to have different indentation on different programming languages.

As a user of Sublime Text, I found that the Syntax Specific is the correct place to configure it. If we want to configure C to use 2 spaces as its default indentation, we can do the followings:

  1. Open/create a C file
  2. Open Syntax Specific at Preferences -> Settings-More -> Syntax Specific
  3. use the following content as the opened file which should be C++.sublime-settings:
  "tab_size": 2,
  "translate_tabs_to_spaces": true

It’s so cool to have that.

How to Add a Web as Application at Windows?

How to Add a Web as Application at Windows? Continue reading

Let's Meet at PyCon 2017 Taiwan

Published on May 09, 2017

OpenCL cross platform??!!

Published on December 21, 2016