augustoicaro / idh

Dave Hale's (messy!) personal repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dave Hale's personal repository

David Hale didn't provide the data folder, so try to understand how functions work and use your data.

Folders descriptions:

  • bench/: Dave's workbench for research If you know how to build and use the Mines Java Toolkit then you may find this useful. It's sort of like my messy garage, with lots of junk that is old and should be discarded.
  • gp404: source code for classes used in one of Dave's courses at Mines.
  • www/: source code for Dave's web site: http://inside.mines.edu/~dhale

Using this repo

This repository install all java dependencies that you need to use files of bench folder.

Steps:

  1. Check in Dockerfile:15 if the JVM heap size it is ok: (Change 24 to the desired size)

    ENV _JAVA_OPTIONS -Xmx24g
    
  2. Build docker container:

    docker build --build-arg USERNAME=$USER --build-arg UID=$(id -u) --build-arg GID=$(id -g) -t hale/idh:latest .
  3. Enter in container with compiled JTK and binded IDH folder

    docker run -it --gpus all --name idh --rm --net host -v /home/$USER/idh:/home/$USER/idh -v /home/$USER/idh/data:/data -v /tmp/.X11-unix:/tmp/.X11-unix -v /etc/resolv.conf:/etc/resolv.conf -v /usr/lib/nvidia:/usr/lib/nvidia -e DISPLAY=$DISPLAY -e XAUTHORITY -e NVIDIA_DRIVER_CAPABILITIES=all hale/idh:latest bash
  4. (Optional) Run JTK tests

    cd jtk
    gradle run -P demo=mosaic.PlotFrameDemo
    gradle run -P demo=mosaic/PlotFrameDemo.py
    gradle run -P demo=ogl.HelloDemo
  5. Build bench folder

    cd 
    cd idh/bench
    gradle 
  6. Run a code

    gradle run -x processResources -P app=lcc.Warp1

To run another application just browse the folders in bench/src/ and find a file with a main() function.

About

Dave Hale's (messy!) personal repository


Languages

Language:Java 69.2%Language:Python 25.2%Language:HTML 3.3%Language:C++ 1.7%Language:Scala 0.2%Language:CSS 0.2%Language:MATLAB 0.1%Language:Shell 0.0%Language:Dockerfile 0.0%