Commit 4ab3e3db authored by zhuwenwen's avatar zhuwenwen
Browse files

fix cudaDeviceProp

parent a4b438d0
......@@ -12,9 +12,12 @@ struct Utils {
if (!is_cached) {
int device_id;
cudaDeviceProp deviceProp;
cudaGetDevice(&device_id);
cudaGetDeviceProperties(&deviceProp, device_id);
// cudaDeviceProp deviceProp;
// cudaGetDevice(&device_id);
// cudaGetDeviceProperties(&deviceProp, device_id);
hipDeviceProp_t deviceProp;
hipGetDevice(&device_id);
hipGetDeviceProperties(&deviceProp, device_id);
result = deviceProp.warpSize;
is_cached = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment