Git Product home page Git Product logo

cilkpride's Introduction

Cilkpride package (beta)

This package is designed to help programmers using the Cilk threading library keep track of their code as they are writing code in Atom. Currently, the plugin automatically runs cilksan in the background and report the results to the users, notifying them if race conditions appear. Results are refreshed every time a file is modified, so that users are told immediately if race conditions exist, and can take the appropriate steps to correct the error.

There are also some added features designed for MIT's 6.172 class, allowing students to edit code locally but evaluate their applications remotely on Athena.

Setting up the package

In order to notify the package that you are writing a project with Cilk, you must place a configuration file cilkpride-conf.json in the top-level directory of the project. The configuration file should have a few settings:

{
  "username": "Username for SSH login, usually your Athena login",
  "remoteBaseDir": "full directory path of the project directory on the remote instance",
  "cilksanCommand": "Enter a Make command that will compile (with cilksan enabled) and run the executable.",

  "sshEnabled": true,
  "hostname": "Hostname for running cilk on a remote server - usually athena.dialup.mit.edu",
  "port": 22,
  "launchInstance": "boolean: only true if you want to use 6.172's Azure VM",
  "localBaseDir": "Full directory path of the project directory on your local computer (ie C:/Users/me/Desktop/my-project)",
  "remoteBaseDir": "Full directory path of the project directory on the remote instance (ie /afs/athena.mit.edu/user/g/c/gchau/my-project)",
  "syncIgnoreFile": ["/cilkpride-conf.json", "other files to ignore"],
  "syncIgnoreDir": ["/.git", "/log.awsrun", "/log.cqrun", "other directories to ignore"]
}

You can automatically generate a template configuration file in a folder by pressing "Register Cilk project" on the status bar, located to the bottom-left of the Atom window. Once this is done, the package will periodically run cilksan on the executable generated by the command specified in cilksanCommand - make sure that this command both makes an cilksan-enabled executable and runs it. The status bar icon will show the package status for the current file open.

Note: If you are using SSH (which you probably are), every time a file is modified, the plugin will upload it to the remote server and try to recompile it. You can also sync local -> remote by pressing CTRL+ALT+G, while syncing remote -> local can be done by pressing CTRL+ALT+J. Beware as these commands will overwrite your files and there is no confirmation before doing so.

cilkpride's People

Contributors

sakawa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cilkpride's Issues

Uncaught Something went wrong when trying to copy /log.cqrun/home/ubuntu/new_jobs_server/6172-stu...

[Enter steps to reproduce below:]

  1. Registered a new cilk project
  2. Filled out cilk_conf file
  3. Entered password
  4. Synced remote --> local (Ctrl + Alt + J)
  5. Waited 5 seconds

Atom Version: 1.11.2
Electron Version: 0.37.8
System: Mac OS X 10.11.6
Thrown From: cilkpride package, v0.1.6

Stack Trace

Uncaught Something went wrong when trying to copy /log.cqrun/home/ubuntu/new_jobs_server/6172-student-jobs/job_rsridhar_20161019T124938_79427/input/koch.in from the remote server.

At /Users/rsridhar/.atom/packages/cilkpride/lib/file-sync.coffee:104

undefined

Commands

     -1:13.5.0 core:save (atom-text-editor.editor.is-focused.autocomplete-active)
  3x -1:09.2.0 core:backspace (atom-text-editor.editor.is-focused)
     -1:05.7.0 core:move-right (atom-text-editor.editor.is-focused)
     -1:05.4.0 core:backspace (atom-text-editor.editor.is-focused)
     -1:01.4.0 core:paste (atom-text-editor.editor.is-focused)
  2x -0:57.9.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:57.3.0 core:save (atom-text-editor.editor.is-focused)
     -0:40.7.0 core:confirm (atom-text-editor.editor.mini.password-view-editor.is-focused)
     -0:22.3.0 cilkpride:sync-remote-local (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "telemetryConsent": "limited"
  }
}

Installed Packages

# User
cilkpride, v0.1.6 (active)
language-latex, v1.0.0 (active)
language-scala, v1.1.6 (active)
latextools, v0.8.5 (active)
minimap, v4.25.0 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.52.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.44.0 (inactive)
base16-tomorrow-dark-theme, v1.2.0 (inactive)
base16-tomorrow-light-theme, v1.2.0 (inactive)
one-dark-ui, v1.6.0 (active)
one-light-ui, v1.6.0 (inactive)
one-dark-syntax, v1.3.0 (active)
one-light-syntax, v1.3.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.7.0 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.2 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.1 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.1 (active)
bookmarks, v0.42.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.40.0 (active)
find-and-replace, v0.201.1 (inactive)
fuzzy-finder, v1.4.0 (active)
git-diff, v1.1.0 (active)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.2 (active)
image-view, v0.59.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (active)
metrics, v1.0.0 (active)
notifications, v0.65.1 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.242.2-hotfix1 (active)
snippets, v1.0.2 (active)
spell-check, v0.68.2 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.0 (active)
symbols-view, v0.113.1 (inactive)
tabs, v0.101.0 (active)
timecop, v0.33.2 (active)
tree-view, v0.209.3 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.35.1 (active)
whitespace, v0.33.0 (active)
wrap-guide, v0.38.2 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.2 (active)
language-csharp, v0.12.1 (active)
language-css, v0.37.1 (active)
language-gfm, v0.88.0 (active)
language-git, v0.15.0 (active)
language-go, v0.42.1 (active)
language-html, v0.45.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.23.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.2 (active)
language-less, v0.29.5 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.2 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.69.0 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.56.0 (active)
language-shellscript, v0.22.4 (active)
language-source, v0.9.0 (active)
language-sql, v0.23.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.9 (active)
language-yaml, v0.26.0 (active)

# Dev
No dev packages

Create default UI

Each module should have a default "Loading" screen or some other indication that there is no data yet.

File Sync

Determine if I need to do this via the SSH module or if I can use another Atom package to do this better.

SSH Module

A SSH module is needed for students to be able to work on their local computer and have their changes be reflected on the AFS server.

cilksan minimap dupes appear

when opening the cilksan detailed view, there is sometimes dupe minimaps, which causes one to fail and throw an error (cannot find getTextEditor from null)

Fix status bar strings

The status bar currently doesn't report errors appropriately - it always says that there are no problems.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.