50 likes | 227 Views
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.
E N D
ManifoldLab 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 • 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.
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)
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”