-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rocprofv2: aqlprofile API table load failed #262615
Comments
I need to do some work with
I wonder if it's because I'm stripping out the test directories? |
I don't think that removing hsa-amd-aqlprofile-bin is a good idea, because without it, it loses performance counters support. I think there should at least be a rocprof derivation with aqlprofile. |
My bad, I forgot to add that the patch is optional. |
Right. |
You can try this, it just prints 10 numbers, it can be compiled with hipcc without any flag. I am using a radeon rx6600m(gfx1032). #include <hip/amd_detail/amd_hip_runtime.h>
#include <stdio.h>
__global__ void gene(int *array) {
int tid = hipBlockDim_x * hipBlockIdx_x + hipThreadIdx_x;
array[tid] = tid;
}
int main() {
int device;
hipDeviceProp_t prop;
hipGetDevice(&device);
hipGetDeviceProperties(&prop, device);
printf("DEVICE: %s\n", prop.name);
int thread_per_block = prop.maxThreadsPerBlock;
printf("Max thread per block: %d\n", thread_per_block);
int n_elem = 10;
int *d_array, *h_array;
int array_size = n_elem * sizeof(int);
hipMalloc(&d_array, array_size);
int numblocks = (n_elem + thread_per_block - 1) / thread_per_block;
gene<<<numblocks, thread_per_block>>>(d_array);
hipDeviceSynchronize();
hipHostMalloc(&h_array, array_size);
hipMemcpy(h_array, d_array, array_size, hipMemcpyDeviceToHost);
hipDeviceSynchronize();
for (int i = 0; i < n_elem; i++) {
printf("%d\n", h_array[i]);
}
hipFree(d_array);
hipFree(h_array);
return 0;
} |
@Tungsten842 see #262798 |
Describe the bug
When trying to use rocprofv2:
This might have something to do with some predefined paths in rocprofv2
Steps To Reproduce
Steps to reproduce the behavior:
Notify maintainers
@NixOS/rocm-maintainersMetadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: