intel / intel/torch-xpu-ops

[release/2.13] test_get_device_properties_tensor_device missing XPU attribute

Open
#3,595 3 comments 0 reactions 1 assignee Claimed by @DamJanusz View on GitHub
skipped test: ut
Dominant language
Python
Stars
113
Forks
128
Avg merge
5d 13h
Merged PRs (30d)
107

Description

## Bug Description

`test_get_device_properties_tensor_device` fails because `torch._C._XpuDeviceProperties` does not have `max_threads_per_multi_processor` attribute. The test was ported from CUDA where `CudaDeviceProperties` has this attribute.

## Affected Tests

Cases:
op_ut,third_party.torch-xpu-ops.test.xpu.dynamo.test_functions_xpu.FunctionTests,test_get_device_properties_tensor_device

## Error Message

```
AttributeError: 'torch._C._XpuDeviceProperties' object has no attribute 'max_threads_per_multi_processor'
```

## Context

Surfaced by PR #3383 (CI run 25534217826) which ported `test_functions_xpu.py`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.