Skip to content

Commit e9f2845

Browse files
authored
Fix image example file extension (#698)
1 parent be975e5 commit e9f2845

File tree

8 files changed

+4
-4
lines changed

8 files changed

+4
-4
lines changed

tasks/example_processes/tests/functional/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class NesterovARunFuncTestsProcesses : public ppc::util::BaseRunFuncTests<InType
3434
std::vector<uint8_t> img;
3535
// Read image in RGB to ensure consistent channel count
3636
{
37-
std::string abs_path = ppc::util::GetAbsoluteTaskPath(PPC_ID_example_processes, "pic.jpg");
37+
std::string abs_path = ppc::util::GetAbsoluteTaskPath(PPC_ID_example_processes, "pic.ppm");
3838
auto *data = stbi_load(abs_path.c_str(), &width, &height, &channels, STBI_rgb);
3939
if (data == nullptr) {
4040
throw std::runtime_error("Failed to load image: " + std::string(stbi_failure_reason()));

tasks/example_processes_2/tests/functional/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class NesterovARunFuncTestsProcesses2 : public ppc::util::BaseRunFuncTests<InTyp
3434
std::vector<uint8_t> img;
3535
// Read image in RGB to ensure consistent channel count
3636
{
37-
std::string abs_path = ppc::util::GetAbsoluteTaskPath(PPC_ID_example_processes_2, "pic.jpg");
37+
std::string abs_path = ppc::util::GetAbsoluteTaskPath(PPC_ID_example_processes_2, "pic.ppm");
3838
auto *data = stbi_load(abs_path.c_str(), &width, &height, &channels, STBI_rgb);
3939
if (data == nullptr) {
4040
throw std::runtime_error("Failed to load image: " + std::string(stbi_failure_reason()));

tasks/example_processes_3/tests/functional/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class NesterovARunFuncTestsProcesses3 : public ppc::util::BaseRunFuncTests<InTyp
3434
std::vector<uint8_t> img;
3535
// Read image in RGB to ensure consistent channel count
3636
{
37-
std::string abs_path = ppc::util::GetAbsoluteTaskPath(PPC_ID_example_processes_3, "pic.jpg");
37+
std::string abs_path = ppc::util::GetAbsoluteTaskPath(PPC_ID_example_processes_3, "pic.ppm");
3838
auto *data = stbi_load(abs_path.c_str(), &width, &height, &channels, STBI_rgb);
3939
if (data == nullptr) {
4040
throw std::runtime_error("Failed to load image: " + std::string(stbi_failure_reason()));

tasks/example_threads/tests/functional/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class NesterovARunFuncTestsThreads : public ppc::util::BaseRunFuncTests<InType,
3737
std::vector<uint8_t> img;
3838
// Read image in RGB to ensure consistent channel count
3939
{
40-
std::string abs_path = ppc::util::GetAbsoluteTaskPath(std::string(PPC_ID_example_threads), "pic.jpg");
40+
std::string abs_path = ppc::util::GetAbsoluteTaskPath(std::string(PPC_ID_example_threads), "pic.ppm");
4141
auto *data = stbi_load(abs_path.c_str(), &width, &height, &channels, STBI_rgb);
4242
if (data == nullptr) {
4343
throw std::runtime_error("Failed to load image: " + std::string(stbi_failure_reason()));

0 commit comments

Comments
 (0)