SWDEV-240806 - Enable hipgraph test on amd platform

Change-Id: I470a9c410704ec2074eb32030311df671da5e8bb


[ROCm/hip commit: 7c5afff964]
This commit is contained in:
Anusha GodavarthySurya
2021-06-17 09:40:39 -07:00
کامیت شده توسط Anusha Godavarthy Surya
والد 42e61e12ab
کامیت 1b0be33247
@@ -24,9 +24,8 @@
#include <vector>
/* HIT_START
* BUILD: %t %s ../../test_common.cpp EXCLUDE_HIP_PLATFORM nvidia
* TEST: %t EXCLUDE_HIP_PLATFORM all
* TEST: %t EXCLUDE_HIP_PLATFORM nvidia
* HIT_END
*/
#define THREADS_PER_BLOCK 512
#define GRAPH_LAUNCH_ITERATIONS 3
@@ -245,9 +244,6 @@ bool hipGraphsManual(float* inputVec_h, float* inputVec_d, double* outputVec_d,
int main(int argc, char** argv) {
size_t size = 1 << 12; // number of elements to reduce
size_t maxBlocks = 512;
// This will pick the best possible CUDA capable device
int devID = 1; // TODO: implement: findCudaDevice(argc, (const char**)argv); based of max GFLOPS
// incase of multiple devic
hipSetDevice(0); //
printf("%zu elements\n", size);
printf("threads per block = %d\n", THREADS_PER_BLOCK);