- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
I have fair amount of experience on GPU programming using CUDA. I used to use clock function inside CUDA kernel (as mentioned in here) to measure ticks of certain operations inside the kernel. I wrote a simple oneAPI kernel and tried to run it on the intel integrated GPU. Errors will be generated.
__kernel void testVecAdd(__global const int *a,__global const int *b,__global int *c,
__global float *t){
clock_t start = clock();
int gid = get_global_id(0);
c[gid] = a[gid] + b[gid];
t[gid] = (float)(clock()-start)/CLOCKS_PER_SEC;
}
error info:
Native API returns: -999 (Unknown OpenCL error code) -999 (Unknown OpenCL error code)Exception caught at file:latency.cpp, line:500
How 2 fix it? Thx
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi,
>> Does the tool exist for me to get GPUs(HD serial) L1 and L2 Miss?
In Gen9 compute architecture, the sampler/images includes L1 and L2 cache Miss and buffers include L3 cache miss.
You can get the L1 and L2 miss using the Vtune profiler if you use sycl images/samplers in your application.
Please refer to the below link for more details:
Thanks & Regards,
Noorjahan.
Lien copié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi,
Thanks for reaching out to us.
we can measure the actual kernel execution time on the device using DPC++ built-in profiling API.
Please refer to the below link for more details:
Please get back to us if you face any issues with a sample reproducer.
Thanks & Regards,
Noorjahan.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi Noorjahan,
Thanks for your answer, I would like to use this method to get Memory Latency. so using profiler tool seems not good to do it. Is there a tool in oneAPI to get Memory Latency?
Thanks & Regards,
Dack.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi,
You can try using the Intel® Memory Latency Checker v3.9a tool to get memory latency.
Please refer to the below link for more details regarding MLC tool.
https://www.intel.com/content/www/us/en/developer/articles/tool/intelr-memory-latency-checker.html
You can also use the Vrune profiler tool which you get by downloading oneAPI Basetoolkit to get memory latency.
Please refer to the below link for more details:
Please let us know whether this tool matches your use case.
Thanks & Regards,
Noorjahan.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi Noorjahan,
Thank you for your answer. First, I think the Intel® Memory Latency Checker v3.9a tool only works on the CPU, and I now want to test the GPU's Memory Latency. Secondly, the Vtune profiler tool can only get the L3 Miss of the GPU, I can't get the L1 and L2 Miss. Does the tool exist for me to get GPUs(HD serial) L1 and L2 Miss?
Thanks & Regards,
Dack.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi,
We are checking with the concerned team and we will get back to you soon.
Thanks & Regards,
Noorjahan.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi,
>> Does the tool exist for me to get GPUs(HD serial) L1 and L2 Miss?
In Gen9 compute architecture, the sampler/images includes L1 and L2 cache Miss and buffers include L3 cache miss.
You can get the L1 and L2 miss using the Vtune profiler if you use sycl images/samplers in your application.
Please refer to the below link for more details:
Thanks & Regards,
Noorjahan.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi,
We haven't heard back from you. Could you please provide an update on your issue?
Thanks & Regards,
Noorjahan
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi,
Thanks for accepting our solution.
As this issue has been resolved, we will no longer respond to this thread. If you need any additional information, please submit a new question.
Thanks & Regards,
Noorjahan.

- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable