Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/vis12-cl/src/compiler/codegen/target-util.sml
ViewVC logotype

View of /branches/vis12-cl/src/compiler/codegen/target-util.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2402 - (download) (annotate)
Sat Jul 27 13:55:03 2013 UTC (5 years, 10 months ago) by jhr
File size: 1184 byte(s)
  Create branch for adding OpenCL to vis12 branch.  Based on r2401 of the vis12 branch.
(* target-util.sml
 *
 * COPYRIGHT (c) 2012 The Diderot Project (http://diderot-language.cs.uchicago.edu)
 * All rights reserved.
 *
 * Utility support for target selection, etc.
 *)

structure TargetUtil =
  struct

    datatype target
      = TARGET_C		(* C code *)
      | TARGET_CL		(* C + OpenCL *)
      | TARGET_CUDA		(* C + CUDA *)

  (* the target descriptor collects together the information specified on the Diderot
   * compiler's command-line.
   *)
    type target_desc = {
	srcFile : string,		(* source filename *)
	outDir : string,		(* directory to put output *)
	outBase : string,		(* basename for output or name of executable *)
	exec : bool,			(* generate standalone executable? *)
	snapshot : bool,		(* generate functions to get snapshot *)
	target : target,		(* target platform *)
	namespace : string,		(* optional namespace prefix *)
	parallel : bool,		(* parallel components *)
	double : bool,			(* true for double-precision candidates *)
	longint : bool,			(* true for 64-bit integers (not currently used) *)
	debug : bool,			(* true if debugging of the target is enabled *)
	bsp : bool			(* true if BSP style execution should always be used *)
      }

  end

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0