Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for gpu_device_metadata (0.36 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/device_util.cc

      static auto* r = new llvm::Regex("compute capability: ([0-9]+)\\.([0-9]+)");
    
      llvm::SmallVector<llvm::StringRef, 3> cc;
      if (r->match(device.attributes().physical_device_desc(), &cc)) {
        return mlir::TF::GpuDeviceMetadata::get(
            builder->getContext(), std::stoi(cc[1].str()), std::stoi(cc[2].str()));
      }
    
      return builder->getUnitAttr();
    }
    
    // Get devices from an array of string attributes.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/device_util_test.cc

      ASSERT_NE(device_meta_0, nullptr);
    
      // GPU device successfully parsed compute capability from description.
      auto device_meta_1 =
          mlir::dyn_cast<mlir::TF::GpuDeviceMetadata>(devices_attr.get(gpu0));
      ASSERT_NE(device_meta_1, nullptr);
      ASSERT_EQ(device_meta_1.getCcMajor(), 7);
      ASSERT_EQ(device_meta_1.getCcMinor(), 0);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top