Created the script test_compile.py.

This script is used to test whether shared variable are on the CPU or GPU when we set the device to respectively the CPU or GPU.