Merged
Merged
Conversation
| mVendorId = "Unkown, probably ARM"; | ||
| cout<< "Unexpected vendor id" <<endl; | ||
| mVendorId = "Unkown"; | ||
| std::cout<< "Unexpected vendor id" << std::endl; |
| bool isDoubleSupported(int device) | ||
| { | ||
| return true; | ||
| return DeviceManager::IS_DOUBLE_SUPPORTED; |
| flag = true; | ||
| } | ||
| return 0; | ||
| } |
|
|
||
| friend queue& getQueue(int device); | ||
|
|
||
| CPUInfo getCPUInfo() const; |
|
|
||
| IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") | ||
| SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_MWAITXINTRIN_H_INCLUDED -D_FORCE_INLINES") | ||
| ENDIF() |
| : handle(0) | ||
| { | ||
| CUSPARSE_CHECK(cusparseCreate(&handle)); | ||
| CUSPARSE_CHECK(cusparseSetStream(handle, cuda::getStream(cuda::getActiveDeviceId()))); |
| } | ||
| } | ||
|
|
||
| } |
| } | ||
| }; | ||
|
|
||
| } |
| { | ||
| cusparseHandles[device].reset(new cusparse::cusparseHandle()); | ||
| } | ||
|
|
|
|
||
| std::unique_ptr<cusolver::cusolverDnHandle> cusolverHandles[MAX_DEVICES]; | ||
|
|
||
| std::unique_ptr<cusparse::cusparseHandle> cusparseHandles[MAX_DEVICES]; |
9prady9
changed the title
[WIP]: Thread safety
Thread safety