• Skip to Main Content
  • Go to the Website's Home
  • Go to Website News
  • Go to About this site
  • Skip to Audience Navigation Menu
  • About
    • Welcome to the College
    • Facts and Figures
    • Message from the Dean
    • Visit Us
    • College Administration
    • News Center
  • Research
    • Research Home
    • Departments
    • Centers & Labs
    • Faculty Directory
    • Opportunities for Undergraduates
  • Admissions
    • Undergraduate Admissions
    • Undergraduate Recruiting
    • Graduate Admissions
  • Academics
    • Departments
    • Undergraduate Programs and Degrees
    • Graduate Programs and Degrees
    • Course Guide/Bulletin
    • Teaching
    • Support Services
  • Departments
    • Aerospace Engineering
    • Atmospheric, Oceanic and Space Sciences
    • Biomedical Engineering
    • Chemical Engineering
    • Civil and Environmental Engineering
    • Electrical Engineering and Computer Science
    • Industrial and Operations Engineering
    • Interdisciplinary Professional Programs
    • Materials Science and Engineering
    • Mechanical Engineering
    • Naval Architecture and Marine Engineering
    • Nuclear Engineering and Radiological Sciences
  • Support the College
    • Giving
    • Involve Yourself
    • Corporate Relationships
  •   

College of Engineering

Center for Advanced Computing

  • Welcome
  • About
  • Getting Started
    • Getting Started
    • Learning About HPC
    • CAC Training Courses
  • Resources
    • Resources
    • Systems
    • Software
    • Storage
    • Networking
    • Visualization
    • Teragrid
  • Academics
  • Contact Us
  • Frequently Asked Questions
Follow Us On Twitter

Contact Information

[Contact] Center for Advanced Computing
College of Engineering
cac-support@umich.edu Link

Center for Advanced Computing  /  Resources  /  Software  /  Using CPLEX

Using CPLEX

Here are the steps to compile and run CPLEX 10.0 and 10.1 jobs at the CAC.

  1. Login to the login-node (e.g. nyx-login)
  2. Use the Unix command :

    module load cplex

    or

    module load cplex/version

    (this sets up your CPLEX environment for compiling.)
  3. Compile your code.
  4. Compiling 64-bit CPLEX

    gcc -fPIC -I${CPLEXHOME}/include -o executable source.c -L${CPLEXHOME}/lib64 -lcplex -lm -lpthread

    Compiling 32-bit CPLEX

    gcc -m32 -fPIC -I${CPLEXHOME}/include -o executable source.c -L${CPLEXHOME}/lib -lcplex -lm -lpthread

    Compiling 64-bit Concert/CPLEX

    g++ -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I${CPLEXHOME}/include source.cpp -o executable -L${CPLEXHOME}/lib64 -lilocplex -lcplex -lconcert -lm -lpthread

    Compiling 32-bit Concert/CPLEX

    g++ -m32 -O -fPIC -fexceptions -DNDEBUG -DIL_STD -I${CPLEXHOME}/include source.cpp -o executable -L${CPLEXHOME}/lib -lilocplex -lcplex -lconcert -lm -lpthread

  5. Create a PBS script . Here is an example PBS script to run
    the imaginary CPLEX binary "lpex6" (located in your
    imaginary "pbs/cplex" dir ):

    #!/bin/csh
    #PBS -N cplex-test
    #PBS -l nodes=1,mem=1gb,walltime=1:00:00
    #PBS -q route
    #PBS -M uniqname@umich.edu
    #PBS -m abe
    #PBS -V
    cd /home/uniqname/pbs/cplex

    ./lpex6 >&lpex6.out

    You should replace the things in bold with values appropriate for you.
  6. Submit PBS script using "qsub" (

    qsub mycplex.pbs

    )
XHTML 1.0 Valid
CSS 2.1 Valid
University of Michigan
  • Home
  • Contact Us
  • Site Map
  • Site Feedback
  • Accessibility
  • Emergency Procedures
  • Jump to top of the page
© 2009 College of Engineering, University of Michigan