Package org.trifort.rootbeer.util

Examples of org.trifort.rootbeer.util.WindowsCompile


        if (errors.isEmpty() == false) {
          m_result =  new CompileResult(m_m32, null, errors);
          return;
        }
      } else {
        WindowsCompile compile = new WindowsCompile();
        String nvidia_path = m_cudaPath.get();
        command = "\"" + nvidia_path + "\" " + model_string + " " + m_gencodeOptions +
          " -fatbin \"" + m_generated.getAbsolutePath() + "\" -o \"" +
          code_file.getAbsolutePath() + "\"" + compile.endl();
        List<String> errors = compile.compile(command, !m_m32);
        if (errors.isEmpty() == false) {
          m_result =  new CompileResult(m_m32, null, errors);
          return;
        }
      }
View Full Code Here


 
  private String compileWindows(File nemu_file){
    String nemu = nemu_file.getAbsolutePath()+File.separator;
    String name = "libnemu";
   
    WindowsCompile compiler = new WindowsCompile();
    String jdk_path = compiler.jdkPath();
 
    if(m_nativeCpuInitialized == false){
      windowsCompile("cl /I\""+jdk_path+"\\include\" /I\""+jdk_path+"\\include\\win32\" "+nemu+"NativeCpuDevice.c /link /DLL /OUT:\""+nemu+"nativecpudevice.dll\" /MACHINE:X64");
    }
   
View Full Code Here

    boolean arch64 = true;
    String arch_str = System.getProperty("os.arch");
    if(arch_str == null || arch_str.equals("x86")){
      arch64 = false;
    }
    WindowsCompile compiler = new WindowsCompile();
    List<String> errors = compiler.compile(cmd, arch64);
    if(errors.isEmpty() == false){
      System.out.println("compilation failed!");
      for(String error : errors){
        System.out.println(error);
      }
View Full Code Here

TOP

Related Classes of org.trifort.rootbeer.util.WindowsCompile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.