Linter plugin for Linter, provides an interface to the build functionality of OpenCL through node-opencl.
On systems with hybrid graphics, OpenCL will compile and lint for the
integrated graphics card by default. While Windows users just need to set the
platform index of the desired platform, Linux users who wants to use the
dedicated graphics card need to run atom through a GPU offloader like
optirun
, e.g.
$ optirun atom
and setting the platform index accordingly.
- Install an OpenCL implementation for your device.
- Install linter-opencl either through the settings window by searching and installing this package or through your command line by running apm install linter-opencl
- (Configure the OpenCL Platfrom, include paths and additional compiler flags preferences.)
- Restart Atom
When activating this package, it searches for a file called
.opencl-config.json
in the project root directory using the following
syntax:
{
"compilerFlags": "-cl-mad-enable -cl-fast-relaxed-math",
"includePaths": [".", "/opt/include"]
}
If this file is present, it will replace the settings you specified in the
settings window. Relative paths (starting with .
or ..
) are
expanded with respect to the root folder.