1 / 5

Manifold Lab 1

Manifold Lab 1. Setting the environment Compiling/running programs. Summary. Setting manifold environment How to compile/run manifold programs Compiling/running HelloWorld program. Copy needed manifold files and some examples to your directory.

casey
Download Presentation

Manifold Lab 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ManifoldLab 1 Setting the environment Compiling/running programs

  2. Summary • Setting manifold environment • How to compile/run manifold programs • Compiling/running HelloWorld program

  3. Copy needed manifold files and some examples to your directory • Copy manifold files contained in /u/students/cs/1998/cs98sa2/manifold.tar to your $HOME directory • cp /u/students/cs/1998/cs98sa2/manifold.tar $HOME • Unzip manifold.tar file to your $HOME directory: • tar –xf manifold.tar • Manifold files are also available for download at course web site in zip and tar format.

  4. How to compile/run manifold programs • In order to compile a manifold program included in a file with name “test.m” type: gmake P=test • If the compilation is successful an executable file named test will be produced in current directory • Before running the program, you must start pvm The steps to start pvm are: • Type pvm • When the pvm> prompt is appeared type quit (This takes you back to the $ prompt while leaving pvm running on the background). • Type test to run it • Before logging off the system stop pvm (i.e. type pvm and when the pvm> prompt is appeared type halt)

  5. Compiling/running HelloWorld program • Login to one of the linux machines of B103 lab: cs4034, cs4038, cs4042, cs4046 (.in.cs.ucy.ac.cy) • Note: The full list of linux machines of B103 lab can be found here • Change directory to manifold/stask under your $HOME directory • Compile and run program hello.m • Running the program should produce: “Hello World”

More Related