anchor.diff:  
   open Tensor.Utils
   open System.Text
  +open System.Text.RegularExpressions
   
   
   /// CUDA backend configuration
  
positive.code:         let compileDir = getTempDir ()
          Directory.CreateDirectory compileDir |> ignore
  
          // get embedded header files from out assembly
          let asmbly = Assembly.GetExecutingAssembly()
          let headers =
              asmbly.GetManifestResourceNames ()
  
negative.code:         // write headers to compile directory
          headers
          |> Seq.iter (fun header -> 
              // extract header file name from resource name
              let filename = Regex.Match(header, @"\.(\w+\.\w+)$").Groups.[1].Value
              let path = Path.Combine (compileDir, filename)
              use fileStrm = File.OpenWrite path
              use strm = asmbly.GetManifestResourceStream(header)
              strm.CopyTo fileStrm)
  
          // write module code
  