다음을 통해 공유


accelerator_view 클래스

C++ AMP 데이터 병렬 가속기에서 가상 디바이스 추상화입니다.

구문

class accelerator_view;

멤버

공용 생성자

속성 설명
accelerator_view 생성자 accelerator_view 클래스의 새 인스턴스를 초기화합니다.
~accelerator_view 소멸자 개체를 accelerator_view 삭제합니다.

공용 메서드

이름 설명
create_marker 이 개체에 지금까지 제출된 모든 명령의 완료를 추적하기 위한 accelerator_view 미래를 반환합니다.
flush 실행하기 위해 개체에 큐에 accelerator_view 대기 중인 모든 보류 중인 명령을 가속기로 제출합니다.
get_accelerator 개체의 accelerator 개체를 accelerator_view 반환합니다.
get_is_auto_selection 개체가 parallel_for_each 전달될 때 accelerator_view 런타임이 자동으로 적절한 가속기를 선택할지 여부를 나타내는 부울 값을 반환합니다.
get_is_debug 광범위한 오류 보고를 위해 개체에 accelerator_view DEBUG 계층이 활성화되어 있는지 여부를 나타내는 부울 값을 반환합니다.
get_queuing_mode 개체의 큐 모드를 accelerator_view 반환합니다.
get_version 의 버전을 반환합니다 accelerator_view.
wait 개체에 제출된 모든 명령이 accelerator_view 완료될 때까지 기다립니다.

Public 연산자

이름 설명
operator!= accelerator_view 개체를 다른 개체와 비교하고 같은 경우 반환 false 하고, 그렇지 않으면 반환합니다 true.
operator= 지정된 accelerator_view 개체의 콘텐츠를 이 항목으로 복사합니다.
연산자== accelerator_view 개체를 다른 개체와 비교하고 같은 경우 반환 true 하고, 그렇지 않으면 반환합니다 false.

공용 데이터 멤버

이름 설명
accelerator 개체의 accelerator 개체를 accelerator_view 가져옵니다.
is_auto_selection 개체가 parallel_for_each 전달될 때 accelerator_view 런타임이 자동으로 적절한 가속기를 선택할지 여부를 나타내는 부울 값을 가져옵니다.
is_debug 광범위한 오류 보고를 위해 개체에 accelerator_view DEBUG 계층이 활성화되어 있는지 여부를 나타내는 부울 값을 가져옵니다.
queuing_mode 개체의 큐 모드를 accelerator_view 가져옵니다.
version 가속기의 버전을 가져옵니다.

상속 계층 구조

accelerator_view

설명

개체는 accelerator_view 액셀러레이터의 논리적으로 격리된 뷰를 나타냅니다. 단일 물리적 컴퓨팅 디바이스에는 논리적인 격리된 개체가 accelerator_view 많이 있을 수 있습니다. 각 액셀러레이터에는 기본 accelerator_view 개체가 있습니다. 추가 accelerator_view 개체를 만들 수 있습니다.

물리적 디바이스는 여러 클라이언트 스레드 간에 공유할 수 있습니다. 클라이언트 스레드는 가속기의 동일한 accelerator_view 개체를 협조적으로 사용하거나, 각 클라이언트는 다른 클라이언트 스레드로부터 격리하기 위해 독립적인 accelerator_view 개체를 통해 컴퓨팅 디바이스와 통신할 수 있습니다.

개체는 accelerator_viewqueuing_mode 열거형 상태 중 하나를 가질 수 있습니다. 큐 모드인 immediate경우 명령은 호출자에게 반환되는 즉시 해당 가속기 디바이스와 유사 copyparallel_for_each 하게 전송됩니다. 큐 모드인 deferred경우 이러한 명령은 개체에 해당하는 명령 큐에 대기됩니다 accelerator_view . 명령이 호출될 때까지 flush() 실제로 디바이스로 전송되지 않습니다.

요구 사항

헤더: amprt.h

네임스페이스: 동시성

accelerator

accelerator_view 개체의 액셀러레이터 개체를 가져옵니다.

구문

__declspec(property(get= get_accelerator)) Concurrency::accelerator accelerator;

accelerator_view

기존 개체를 복사하여 accelerator_view 클래스의 새 인스턴스를 accelerator_view 초기화합니다.

구문

accelerator_view( const accelerator_view & other );

매개 변수

기타
복사할 개체입니다 accelerator_view .

create_marker

이 개체에 지금까지 제출된 모든 명령의 완료를 추적하기 위한 accelerator_view 미래를 반환합니다.

구문

concurrency::completion_future create_marker();

Return Value

이 개체에 지금까지 제출된 모든 명령의 완료를 추적하기 위한 accelerator_view 미래입니다.

flush

실행하기 위해 accelerator_view 개체에 큐에 대기 중인 모든 보류 중인 명령을 가속기로 제출합니다.

구문

void flush();

Return Value

void을(를) 반환합니다.

get_accelerator

accelerator_view 개체의 액셀러레이터 개체를 반환합니다.

구문

accelerator get_accelerator() const;

Return Value

accelerator_view 개체의 액셀러레이터 개체입니다.

get_is_auto_selection

accelerator_view parallel_for_each 전달될 때 런타임이 자동으로 적절한 가속기를 선택할지 여부를 나타내는 부울 값을 반환합니다.

구문

bool get_is_auto_selection() const;

Return Value

true런타임이 자동으로 적절한 가속기를 선택하면 이고, 그렇지 않으면 . false

get_is_debug

광범위한 오류 보고를 위해 accelerator_view 개체에 DEBUG 계층이 활성화되어 있는지 여부를 나타내는 부울 값을 반환합니다.

구문

bool get_is_debug() const;

Return Value

accelerator_view 개체에 확장 오류 보고를 위해 DEBUG 레이어가 활성화되었는지 여부를 나타내는 부울 값입니다.

get_queuing_mode

accelerator_view 개체의 큐 모드를 반환합니다.

구문

queuing_mode get_queuing_mode() const;

Return Value

accelerator_view 개체의 큐 모드입니다.

get_version

accelerator_view 버전을 반환합니다.

구문

unsigned int get_version() const;

Return Value

의 버전입니다 accelerator_view.

is_auto_selection

accelerator_view parallel_for_each 전달될 때 런타임이 자동으로 적절한 가속기를 선택할지 여부를 나타내는 부울 값을 가져옵니다.

구문

__declspec(property(get= get_is_auto_selection)) bool is_auto_selection;

is_debug

광범위한 오류 보고를 위해 accelerator_view 개체에 DEBUG 계층이 활성화되어 있는지 여부를 나타내는 부울 값을 가져옵니다.

구문

__declspec(property(get= get_is_debug)) bool is_debug;

operator!=

이 accelerator_view 개체를 다른 개체와 비교하고 같은 경우 반환 false 하고, 그렇지 않으면 반환합니다 true.

구문

bool operator!= ( const accelerator_view & other ) const;

매개 변수

기타
이것과 비교할 accelerator_view 개체입니다.

Return Value

두 개체가 같으면 false이고, 그렇지 않으면 true입니다.

operator=

지정된 accelerator_view 개체의 내용을 이 개체에 복사합니다.

구문

accelerator_view & operator= ( const accelerator_view & other );

매개 변수

기타
accelerator_view 복사할 개체입니다.

Return Value

수정된 accelerator_view 개체에 대한 참조입니다.

연산자==

이 accelerator_view 개체를 다른 개체와 비교하고 같은 경우 반환 true 하고, 그렇지 않으면 반환합니다 false.

구문

bool operator== ( const accelerator_view & other ) const;

매개 변수

기타
이것과 비교할 accelerator_view 개체입니다.

Return Value

두 개체가 같으면 true이고, 그렇지 않으면 false입니다.

queuing_mode

accelerator_view 개체의 큐 모드를 가져옵니다.

구문

__declspec(property(get= get_queuing_mode)) Concurrency::queuing_mode queuing_mode;

version

accelerator_view 버전을 가져옵니다.

구문

__declspec(property(get= get_version)) unsigned int version;

wait

accelerator_view 개체에 제출된 모든 명령이 완료될 때까지 기다립니다.

구문

void wait();

Return Value

void을(를) 반환합니다.

설명

queuing_mode 경우 이 메서드는 immediate차단 없이 즉시 반환됩니다.

~accelerator_view

accelerator_view 개체를 제거합니다.

구문

~accelerator_view();

참고 항목

Concurrency 네임스페이스(C++ AMP)