apu_se.py (11700:7d4d424c9f17) apu_se.py (11851:824055fe6b30)
1#
2# Copyright (c) 2015 Advanced Micro Devices, Inc.
3# All rights reserved.
4#
5# For use for simulation and test purposes only
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions are met:

--- 378 unchanged lines hidden (view full) ---

387 if kernel_files:
388 print "Using GPU kernel code file(s)", ",".join(kernel_files)
389 else:
390 fatal("Can't locate kernel code (.asm) in " + kernel_path)
391
392# OpenCL driver
393driver = ClDriver(filename="hsa", codefile=kernel_files)
394for cpu in cpu_list:
1#
2# Copyright (c) 2015 Advanced Micro Devices, Inc.
3# All rights reserved.
4#
5# For use for simulation and test purposes only
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions are met:

--- 378 unchanged lines hidden (view full) ---

387 if kernel_files:
388 print "Using GPU kernel code file(s)", ",".join(kernel_files)
389 else:
390 fatal("Can't locate kernel code (.asm) in " + kernel_path)
391
392# OpenCL driver
393driver = ClDriver(filename="hsa", codefile=kernel_files)
394for cpu in cpu_list:
395 cpu.workload = LiveProcess(executable = executable,
396 cmd = [options.cmd] + options.options.split(),
397 drivers = [driver])
395 cpu.workload = Process(executable = executable,
396 cmd = [options.cmd] + options.options.split(),
397 drivers = [driver])
398for cp in cp_list:
399 cp.workload = host_cpu.workload
400
401if fast_forward:
402 for i in xrange(len(future_cpu_list)):
403 future_cpu_list[i].workload = cpu_list[i].workload
404
405########################## Create the overall system ########################

--- 175 unchanged lines hidden ---
398for cp in cp_list:
399 cp.workload = host_cpu.workload
400
401if fast_forward:
402 for i in xrange(len(future_cpu_list)):
403 future_cpu_list[i].workload = cpu_list[i].workload
404
405########################## Create the overall system ########################

--- 175 unchanged lines hidden ---